[Chat] Moving chat to another environment - invalid session key.

[Chat] Moving chat to another environment - invalid session key.

Forge Component
Published on 2015-11-24 by Hélio Dolores
28 votes
Published on 2015-11-24 by Hélio Dolores
We are moving out application that uses chat to another environment. We are using heroku server. And created new application with changes url in myserver var (last line in server.js file) and updated chat eSpace properties to have new heroku app url (
NodeServer) and settings for NodePorts, NodeHTTPS, and IsSetupDone.
In heroku server logs I'm seeing "invalid session key" message and chat is not started properly as on current environment.
Chat users are created automatically when new users are registered.

Here are messages from heroku logs

2016-05-03T16:41:52.444054+00:00 app[web.1]:
debug: websocket writing 1::

2016-05-03T16:41:52.513595+00:00 app[web.1]: Connection refused for acd32b87-e453-594e-b3d5-678452c8d5e0 : invalid session key!

2016-05-03T16:41:52.513748+00:00 app[web.1]: debug: websocket writing 5:::{"name":"Refused"}

Are we missing something that we need to change when performing such migration?
Thank you for any advice.

Best regards,

Problem solved. My error was forgetting to update chat url in moved application.