Unknown Error - 502 status code from client, 200 from browser #8

Closed
opened 2014-05-19 12:35:48 +00:00 by jshawl · 1 comment
jshawl commented 2014-05-19 12:35:48 +00:00 (Migrated from github.com)

I've read through issue #3, and enabled the debugging, but all i get in the console is

localtunnel server listening on port: 1300 +0ms

when I start the server, and

localtunnel-server request /?new +0ms

when i make a request from the client.

From the client, I run:

$ lt --host "http://dev.jshawl.com" --port 1300

And it returns Error: localtunnel server returned an error, please try again.

This seems to be coming from line 210 of client.js - 7b1fef982f/client.js (L210)

When I console.log the res.statusCode, it gives a 502 (bad gateway), but I've confirmed (I think) that nginx is set up correctly - http://dev.jshawl.com/

Is there something else I should try/console.log/test to get this working?

I've read through issue #3, and enabled the debugging, but all i get in the console is ``` localtunnel server listening on port: 1300 +0ms ``` when I start the server, and ``` localtunnel-server request /?new +0ms ``` when i make a request from the client. From the client, I run: ``` $ lt --host "http://dev.jshawl.com" --port 1300 ``` And it returns `Error: localtunnel server returned an error, please try again`. This seems to be coming from line 210 of client.js - https://github.com/defunctzombie/localtunnel/blob/7b1fef982fecc2ce24ea9a95eb5854483b072b79/client.js#L210 When I `console.log` the `res.statusCode`, it gives a 502 (bad gateway), but I've confirmed (I think) that nginx is set up correctly - http://dev.jshawl.com/ Is there something else I should try/console.log/test to get this working?
defunctzombie commented 2014-05-19 15:31:04 +00:00 (Migrated from github.com)

You are using the command line wrong based on the port your localtunnel server is on

$ lt --host "http://dev.jshawl.com:1300" --port <your app port>

The --port argument is for your app, not the server

You are using the command line wrong based on the port your localtunnel server is on ``` shell $ lt --host "http://dev.jshawl.com:1300" --port <your app port> ``` The `--port` argument is for your app, not the server
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hoelee/server#8
No description provided.