You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there's a front-end nginx server proxying the request to the backend VM running rethink, which I booted with:
/app/vendor/rethinkdb/rethinkdb --http-port $PORT -d /app/share/rethinkdb_data
I can't seem to reproduce this locally. On my setup, the browser sends ajax requests to the same port as the port I pointed the browser to. For example, if I point the browser to some_machine:9292 (and I started the server with http port being 9292), all ajax requests go to 9292.
Did you verify that the browser sends an ajax call to the wrong port? Could you describe which ports you're proxying and where?
Activity
coffeemug commentedon Nov 16, 2012
I can't seem to reproduce this locally. On my setup, the browser sends ajax requests to the same port as the port I pointed the browser to. For example, if I point the browser to some_machine:9292 (and I started the server with http port being 9292), all ajax requests go to 9292.
Did you verify that the browser sends an ajax call to the wrong port? Could you describe which ports you're proxying and where?
themgt commentedon Nov 16, 2012
The browser is going to port 80, which is nginx, which forwards to the upstream at a different IP, port 6000. You should still be able to see the issue live here:
http://rethinkdb.a.pogoapp.com/#dataexplorer
(i.e. that request is going to port 80, and you can see the ajax request from the page is for http://rethinkdb.a.pogoapp.com:8080/ajax/reql/open-new-connection)
coffeemug commentedon Nov 16, 2012
Hmm, actually this might be happening only on http connections from the data explorer and only on port 80. We'll investigate tomorrow.
coffeemug commentedon Nov 16, 2012
@wmrowan -- grepping through the driver code, there is some allusion to default port 8080 in the http connection. I bet that's the culprit.
neumino commentedon Nov 16, 2012
I'm half (maybe more) guilty here too.
If the port is not found, I'm sending an empty port. I can instead just send 80.
I think that should fix the problem.
neumino commentedon Nov 16, 2012
After talking with @coffeemug we will fix it on the web ui.
Assigning to myself.
Fix for when a user is redirecting port 80 to rethinkdb's http port. …
neumino commentedon Nov 16, 2012
8a42bcb should fix this issue.
I tested it with apache forwarding port 80 to rethinkdb's http port.
themgt commentedon Nov 16, 2012
awesome, thanks! I rebuilt & redeployed and it looks all good
neumino commentedon Nov 16, 2012
You're welcome :)