Embed comments : TypeError: Attempting to register an unknown factory: `site-settings:main`

I try to embed comments into an external website but i always get this error :

And in the log i get this two errors :

Uncaught TypeError: Attempting to register an unknown factory: `site-settings:main`
Url:     https://forum.teambac.fr/assets/ember_jquery94d39baf2b7a346571d3472782c3994e23b7cf8c4e2c645075bc11f7a82cdccf.js
Line: 4
Column: 5819
Window Location: https://forum.teambac.fr/embed/comments?embed_url=https%3A%2F%2Fwww.teambac.fr%2Fevent%2F518

I can see in the log Job exception: 404 Not Found

And backtrace log :

/usr/local/lib/ruby/2.3.0/open-uri.rb:359:in `open_http'
/usr/local/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
/usr/local/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
/usr/local/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
/usr/local/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
/usr/local/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
/var/www/discourse/lib/freedom_patches/open_uri_redirections.rb:70:in `open_uri'
/usr/local/lib/ruby/2.3.0/open-uri.rb:717:in `open'
/usr/local/lib/ruby/2.3.0/open-uri.rb:35:in `open'
/var/www/discourse/app/models/topic_embed.rb:84:in `find_remote'
/var/www/discourse/app/models/topic_embed.rb:138:in `import_remote'
/var/www/discourse/lib/topic_retriever.rb:56:in `fetch_http'
/var/www/discourse/lib/topic_retriever.rb:43:in `perform_retrieve'
/var/www/discourse/lib/topic_retriever.rb:10:in `retrieve'
/var/www/discourse/app/jobs/regular/retrieve_topic.rb:16:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

And the env log :

hostname	vps-app
process_id	[94, 93]
application_version	[fa6b10cf3ce84d21861a50519f5d5ffa7201bcc4, 999f52954f698841cd02f012557d101783143efa]
current_db	default
current_hostname	forum.teambac.fr
job	Jobs::RetrieveTopic
problem_db	default
opts	null
user_id	[2, 329]
embed_url	[https://www.teambac.fr/event/518, https://www.teambac.fr/event/486]
referer	[https://www.teambac.fr/event/518, https://www.teambac.fr/event/486]
current_site_id	default 

And this is the code used to embed :

    <div id='discourse-comments'></div>

    <script type="text/javascript">
      DiscourseEmbed = { discourseUrl: 'https://forum.teambac.fr/',
                         discourseEmbedUrl: window.location };

      (function() {
        var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
        d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
      })();
    </script>
1 Like

Any clues ? at least to understand what this error mean …

we have the same issue. anyone know why? thx

same issue here. How to fix this?

I’m having this issue on a self-hosted instance. I get the error when I’m in settings and I reload the page. I also get it when I follow a link to a settings area (ie in the welcome setup email).

This means non-admin my users appear to be safe unless they reload the page in their profile settings, but wondering what the issue might be.

“TypeError: Attempting to register an unknown factory: ‘site-settings:main’”