Closed acflint closed 6 years ago
It sounds like you have some sort of configuration issue.. What do you get if you request the info
directly??
ie:
curl <your RC server schema & host>/api/v1/info
Hey @abrom, thanks for the super quick reply. I get {"info":{"version":"0.65.0"},"success":true}
when I hit the API directly. The login, and all other calls work for me fine in AJAX or using Postman.
And how about:
require 'rocketchat'
rocket_server = RocketChat::Server.new('http://your.server.address/')
puts rocket_server.info
RocketChat::HTTPError: Invalid http response code: 302
Oh! @abrom I think I found it. My server requires HTTPS. It seems to work with that. Sorry for bothering you!
That'll do it ;)
Hello! I'm running into an issue, which may just be my mistake. I'm running RC version 0.65.0.
Any request to the server returns a 302 response code. For example, I create a server with
ROCKET_SERVER = RocketChat::Server.new(ENV["ROCKET_URL"], debug: $stderr)
and when I try to login, or even get server info I get a 302 response. Such asROCKET_SERVER.info
returnsRocketChat::HTTPError: Invalid http response code: 302
. Do you have any suggestions to resolve that? Thanks!