Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversejs error after migration from 3.3.4 to 4.2.0 #1558

Closed
rheman opened this issue May 6, 2019 · 8 comments
Closed

Conversejs error after migration from 3.3.4 to 4.2.0 #1558

rheman opened this issue May 6, 2019 · 8 comments
Labels

Comments

@rheman
Copy link

rheman commented May 6, 2019

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
         },
 });
@jcbrand
Copy link
Member

jcbrand commented May 9, 2019

Did you manage to get this working?

@rheman
Copy link
Author

rheman commented May 9, 2019

No I still get the same error

@jcbrand
Copy link
Member

jcbrand commented 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?

@rheman
Copy link
Author

rheman commented May 9, 2019

Hi,
I do not have any plugins and I do not have any customizations.
My firefox console display the following errors:

TypeError: this.get is not a function[Learn More] converse.js:64979:17

Bellow are two screenshots of my console.

Screenshot from 2019-05-09 23-08-53

Screenshot from 2019-05-09 23-13-59

Regards

@jcbrand
Copy link
Member

jcbrand commented 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.

@jcbrand jcbrand added this to the 5.0.0 milestone May 13, 2019
@rheman
Copy link
Author

rheman commented May 13, 2019

Thanks a lot for your answer.
I set forward_messages to false in my settings. But one error is remaining under firefox, as you could see on the screenshot.

Screenshot from 2019-05-13 18-33-12

But under other browsers (chrome and opera) I sill get a lot of errors as you can see on the following screenshots.

error1

error2

Regards,

@jcbrand
Copy link
Member

jcbrand commented May 13, 2019

I think the Firefox error can be ignored, it's a low-level Strophe error from which it generally recovers.

I'm not sure what the other error is about...

@jcbrand jcbrand reopened this May 13, 2019
@Nyco Nyco added the bug label Jun 10, 2019
@jcbrand jcbrand removed this from the 5.0.0 milestone Jun 28, 2019
@jcbrand
Copy link
Member

jcbrand commented Aug 12, 2019

I'm closing this ticket as a wontfix. We don't have the resources to deal with this.

@jcbrand jcbrand closed this as completed Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants