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

Can't connect to http server #1292

Closed
is-andrade opened this issue Oct 9, 2019 · 2 comments
Closed

Can't connect to http server #1292

is-andrade opened this issue Oct 9, 2019 · 2 comments

Comments

@is-andrade
Copy link

  • Your Rocket.Chat Experimental app version: 1.20.0
  • Your Rocket.Chat server version: 0.57.2
  • Device (or Simulator) you're running with: Pocophone F1

I'm trying to connect to a server hosted in the company I work for, and I'm failing to make it happen in mobile apps (React and Kotlin version).

in Ubuntu desktop version or accessing from mobile browser it's working well under the URL http://li2234:3000
image

But when I try in the mobile app it fails, in react version I get this message The_URL_is_invalid: 'The URL you entered is invalid. Check it and try again, please!' :
image

I took a look in code, then I saw it comes from getServerInfo method:
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/develop/app/lib/rocketchat.js#L88
which append the input server string with '/api/info', then I tried to run it from my device and it worked:
image

so now I'm quite confused about why this behavior is happening.

@lorek123
Copy link

From Readme:
Supported Server Versions: 0.70.0+
Check if you can connect after update ;)

@is-andrade
Copy link
Author

Thank you, @lorek123. I looked at the code but not the readme 🤦‍♂️

Suggest: the error message could be better. It says the URL I entered is invalid, but this is not the real problem.

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

No branches or pull requests

2 participants