RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.58k stars 10.59k forks source link

Endless loop if use prefix path with ROOT_URL #22033

Open adthonb opened 3 years ago

adthonb commented 3 years ago

Description:

I running Rocket Chat with a prefix path like https://localhost:4000/test and get the error that makes an endless request and freeze my browser.

I had dig into the problem and I found that if I define prefix path, a request to /api/ecdh_proxy/initEncrptedSession on frontend will get 404 Not Found (prefix path not apply to it) that makes an endless request to /api/v1/method.callAnon/getSetupWizardParameters

Steps to reproduce:

  1. Get docker-compose file from https://github.com/RocketChat/Rocket.Chat/blob/develop/docker-compose.yml
  2. Change ROOT_URL to http://localhost:3000/test
  3. Run and open rocketchat URL

Expected behavior:

Actual behavior:

image

Server Setup Information:

Client Setup Information

johncrisp commented 3 years ago

Hi. If you check here you will see that running Rocket in a sub directory has been deprecated.

It was slated for 4.0 but it has not been maintained for a while now.

There is an Issue here explaining more as well as this forum post:

https://forums.rocket.chat/t/support-for-installation-in-subdirectory-will-be-discontinued/6371

adthonb commented 3 years ago

@johncrisp Hi, Thank you for the answer but I just confuse that my version is 3.14.0

johncrisp commented 3 years ago

As an update to this we are going to continue sub directory support.

https://forums.rocket.chat/t/support-for-installation-in-subdirectory-will-be-discontinued/6371/26?u=john.crisp

There are still some issues but we are working on resolving them.

eg

https://github.com/RocketChat/Rocket.Chat/issues/22708

Please test on the latest 3.16.x and check the port you are using - it should be 3000 ??