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

"Not a valid Rocket.Chat instance" attempting to connect to our server #378

Closed
cdhowie opened this issue Jul 24, 2018 · 6 comments · Fixed by #551
Closed

"Not a valid Rocket.Chat instance" attempting to connect to our server #378

cdhowie opened this issue Jul 24, 2018 · 6 comments · Fixed by #551

Comments

@cdhowie
Copy link

cdhowie commented Jul 24, 2018

  • Your Rocket.Chat.Android app version: Unsure, because I can't even connect to my server and hence can't get to the side menu. It's the latest version from the Google Play store as of today (2018-07-24).
  • Your Rocket.Chat server version: 0.66.3
  • Device model (or emulator) you're running with: Nexus 6P - Android 8.1.0
  • Steps to reproduce: Attempt to connect to server https://rocket.imavex.com - this fails with "is not a valid Rocket.Chat instance."

I've verified that our server is sending the full certificate chain (this was cited in another thread as a possible issue) and that web sockets are working (using the instance from Chrome shows web socket activity in the network debugger).

I cannot figure out why the app refuses to connect to the server; the other apps appear to work fine. (I'd like to see better diagnostics from the app so that if there is an issue with the server, we can correct it.)

@diegolmello
Copy link
Member

@cdhowie I tried here with a brand new version from Google Play and it works fine with https://rocket.imavex.com
I'm not sure how can I proceed.
Can you help us out by inspecting what is happening?

The test is done here: https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/lib/rocketchat.js#L87

Thanks.

@cdhowie
Copy link
Author

cdhowie commented Jul 24, 2018

@diegodorgam Now I'm extremely perplexed because it's working on my phone suddenly. I've tried various times over the past week (which should rule out typos) and it gave me the same error every time. I tried using logcat and was unable to retrieve any logs from the app. So I have no explanation for why it wasn't working before, nor why it suddenly started working the minute I asked for help. :/

@cdhowie cdhowie closed this as completed Jul 24, 2018
@diegolmello
Copy link
Member

@cdhowie A new version was released 2018/07/20.
That's may be the reason.
I'm glad that worked :)

@cdhowie
Copy link
Author

cdhowie commented Jul 24, 2018

Interesting. I reinstalled the app this morning, but looking in my notifications, it was auto-updated within the last hour. I guess the rollout to me was slow.

@nsakapeter
Copy link

@diegolmello what version of rocketchat are you currently running. I am running version 0.66.3 and anytime I try to connect to my server with the react native app it says my url is invalid. my server address is https://app.squire.study

@diegolmello
Copy link
Member

Hi, @nsakapeter.
Your server is returning x-instance-id in a different case X-Instance-Id.
It seems this header may change cases and we need to pick the value in whatever type it returns.
I'll take a look and keep you updated.

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

Successfully merging a pull request may close this issue.

3 participants