Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Livechat does not work anymore on path different than / #504

Closed
asarubbo opened this issue Sep 29, 2020 · 3 comments · Fixed by #521
Closed

Livechat does not work anymore on path different than / #504

asarubbo opened this issue Sep 29, 2020 · 3 comments · Fixed by #521

Comments

@asarubbo
Copy link

Description:

Livechat does not work anymore on path different than /

Steps to reproduce:

  1. Configure rocket on non standard path e.g. https://rocket.mycompany.com/rocket
  2. Integrate the livechat on the website
  3. Unable to use the rocket.chat from the website.

Expected behavior:

Use the rocket.chat from the website

Actual behavior:

In the nginx access log I'm able to see that the request starts on /rocket/livechat with code 200 and then it moves to /livechat where there is nothing and it gives 403

Server Setup Information:

  • Version of Rocket.Chat Server: 3.6.3
  • Operating System: Gentoo Linux
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 12.16.1
  • MongoDB Version: 4.0.12

Client Setup Information

  • Desktop App or Browser Version: chrome-85
  • Operating System: Gentoo

Additional context

If I'm not mistaken it started to be broken from 3.6.1

Relevant logs:

IP - - [14/Sep/2020:16:31:51 +0200] "GET /rocket/livechat HTTP/2.0" 200 515 "WEBSITE REFERER" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" "-"
IP - - [14/Sep/2020:16:31:51 +0200] "GET /livechat/0.chunk.85c58.js HTTP/2.0" 403 653 "https://rocket.mycompany/rocket/livechat" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" "-"
@renatobecker renatobecker transferred this issue from RocketChat/Rocket.Chat Oct 1, 2020
@asarubbo
Copy link
Author

asarubbo commented Oct 7, 2020

Since there was no response in a week and we don't have the livechat working, may I ask if there is at least a way to 'downgrade' and check if it works again?

@renatobecker
Copy link
Contributor

Since there was no response in a week and we don't have the livechat working, may I ask if there is at least a way to 'downgrade' and check if it works again?

Thanks for reporting, we're looking into this issue.
Thanks.

@asarubbo
Copy link
Author

Hi,
I updated to rocket.chat-3.8.0 and the issue is still here.

In the nginx log I still can see:

[14/Nov/2020:17:30:55 +0100] "GET /livechat/0.chunk.85c58.js HTTP/2.0" 403
[14/Nov/2020:17:30:55 +0100] "GET /livechat/polyfills.38c0c.js HTTP/2.0" 403
[14/Nov/2020:17:30:55 +0100] "GET /livechat/vendors~bundle.chunk.b4ad3.js HTTP/2.0" 403
[14/Nov/2020:17:30:55 +0100] "GET /livechat/bundle.55ca9.js HTTP/2.0" 403

And obviously the livechat does not work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants