Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

__meteor_runtime_config__.ROOT_URL not changed when ROOT_URL is changed #59

Closed
Sing-Li opened this issue Jan 19, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@Sing-Li
Copy link
Member

Sing-Li commented Jan 19, 2016

For some reason __meteor_runtime_config__.ROOT_URL value in https://rocketchat-host/__cordova/index.html is not changed even when the ROOT_URL value is changed via the admin console, or via our Auto ROOT_URL detect popup toast.

This will cause the mobile app to load the previous ROOT_URL value, resulting in a blank (or white bar) login screen.

This happens frequently because the default is localhost:3000 - and many rely on our 'auto detect toast' to fix the ROOT_URL for all non-mobile clients.

Highly likely the cause of #25

@Sing-Li Sing-Li added the bug label Jan 19, 2016
@Sing-Li Sing-Li changed the title __meteor_runtime_config__.ROOT_URL NOT changed when ROOT_URL is changed __meteor_runtime_config__.ROOT_URL not changed when ROOT_URL is changed Jan 19, 2016
@Johann-Snapp
Copy link

Tested on Android, debugging with chrome.

On the server screen:

  • The application can't download the manifest.json file
  • Same for fr.i18n.json file

After downloading files from the server:

The application fails to downoad sandstorm-credentials. As the file is not found, the xhr response body is null and the callback throws: "/.sandstorm-credentials is not JSON?".
When I look at the request headers, I've got something illogic in the Request URL field. It looks like => http://httpmyip3000.meteor.local/.sandstorm-credentials.
ie if my ip is 1.1.1.1, I've got: http://http11113000.meteor.local/.sandstorm-credentials.
I've tried to change "meteor.local" into "myip:300" everywhere in the project to check if it would work but without success.

EDIT: If I change my IP for a domain name, I don't have the .sandstorm-credentials problem anymore but it still doesn't work.
I've tried to switch from port 3000 to 80, it doesn't change anything.

EDIT2: Note that the problem occurs only while trying to connect to a dev instance. If I try to connect to demo.rocket.chat or to an instance installed on a server, there's no problem at all.

EDIT3: When I try to connect through an emulator, it works well too. So the problem only occurs while trying to connect to my development server from a real device.

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

No branches or pull requests

3 participants