question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conversejs error after migration from 3.3.4 to 4.2.0

See original GitHub issue

Hi I used to use conversejs 3.3.4 on my website with requirejs and it worked perfectly. Today I have decided to migrate from 3.3.4 to 4.2.0 and I get a lot of errors.

  • xmpp sever: ejabberd 19
  • Linux server: ubunti 18.04
  • converjs 4.2.0

I get the following errors:

TypeError: this.get is not a function                   converse.js:64979:17
ERROR: request id 2.1 error 403 happened      converse.js:63317:5
too much recursion                                             converse.js:65283:11
too much recursion                                             converse.js:1737:5
too much recursion                                             converse.js:1378:5

My conversejs setting looks as followed.

var view_mode = elgg.data.pessek_chat.view_mode;
 var user_jid = elgg.data.pessek_chat.user_jid;    
 var bosh_service_url = elgg.data.pessek_chat.bosh_service_url; 
 var websocket_url_non_secure = elgg.data.pessek_chat.websocket_url_non_secure;
 var websocket_url_secure = elgg.data.pessek_chat.websocket_url_secure;
 var credentials_url = elgg.data.pessek_chat.credentials_url;     
 var prebind_url = elgg.data.pessek_chat.prebind_url;   
 var userxmppdomain = elgg.data.pessek_chat.userxmppdomain;
 var sounds_path = elgg.data.pessek_chat.sounds_path;
 var emojione_image_path = elgg.data.pessek_chat.emojione_image_path;
 var site_url = elgg.data.pessek_chat.site_url;
 var locales_url = elgg.data.pessek_chat.locales_url;
 var user_jid_pass = elgg.data.pessek_chat.user_jid_pass; 
 var language_code = elgg.get_language(); 

converse.initialize({
 authentication: 'prebind',        
 prebind_url: prebind_url,
     bosh_service_url: bosh_service_url,
     view_mode: view_mode,
         keepalive: true, 
         jid: user_jid,
         allow_logout: false,
         allow_muc: false,
         notification_icon: emojione_image_path + 'pessek.jpg',
         muc_instant_rooms: false,
         allow_muc_invitations: false,
         allow_non_roster_messaging: true,
         allow_otr: true,
         cache_otr_key: true,
         forward_messages: true,
         roster_groups: false,
         allow_contact_requests: false,
         allow_chat_pending_contacts: false,
         allow_contact_removal: false,
         auto_reconnect: true,
         auto_login: true,
         animate: true,
         message_archiving: 'always',
         i18n: language_code,
         locales_url: locales_url,
         csi_waiting_time: 60,
         auto_away: 300,
         ping_interval: 180,
         archived_messages_page_size: 70,
         message_carbons: true,
         default_domain : userxmppdomain,
         allow_registration: false,
         debug: true,
         sounds_path: sounds_path,
         play_sounds: true,
         xhr_user_search_url: site_url + 'chat_user_search',
         show_controlbox_by_default: true,
         strict_plugin_dependencies: false,
         synchronize_availability: true,
         visible_toolbar_buttons: {
             call: true,
             emoji: true,
 	spoiler: true,
             toggle_occupants: true
         },
 });

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jcbrandcommented, May 13, 2019

Thanks for the additional info, should be fixed now in master.

For now, as a workaround, if you set forward_messages to false, then the problem should go away. That option is in any case no longer necessary in most cases because the servers support message carbons.

1reaction
jcbrandcommented, May 9, 2019

There isn’t enough info in your bug report to know what’s going on. Do you have any plugins or customizations to Converse?

Can you post the full error traceback?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration — Converse 10.0.0 documentation
Converse is passed its configuration settings when you call its initialize method. ... If no nickame value is found, then an error will...
Read more >
News and Open Source Releases - DistroWatch.com
Package release, 2022-09-16, The view3dscene project has released version 4.2.0 ... Project news, 2022-08-28, EndeavourOS team reports on Arch boot bug ...
Read more >
Is converse.js supported in Internet Explorer 11?
JCBrand (ConverseJS developer) has confirmed that this version is not working in IE11 and will be releasing a fix on a future release....
Read more >
SecPod SCAP Repo, a repository of SCAP Content (CVE ...
Adobe ColdFusion MX 7 through 7.0.2, and JRun 4, when run on Microsoft IIS, ... unspecified information in error messages when (1) attempted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found