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

[ERROR]: cannot reach server on port 8000 #125

Open
curious-33 opened this issue Apr 11, 2023 · 4 comments
Open

[ERROR]: cannot reach server on port 8000 #125

curious-33 opened this issue Apr 11, 2023 · 4 comments

Comments

@curious-33
Copy link

I have an issue when I run "jprq http 8000". I changed the port, but it didn't help me

image

@azimjohn
Copy link
Owner

is the server actually running?
can you access 127.0.0.1:8000 from your browser?
is it inside docker container? if so, is the container port exposed?

@curious-33
Copy link
Author

curious-33 commented Apr 12, 2023

Yeap, the server is running. I checked it with ngrok and there is no problem with ngrok. There are no error details and couldn't find a solution. I'm not using docker container

@curious-33
Copy link
Author

DEVICE: Mac m1 Air(2020)
OS: Ventura 13.3.1

@azimjohn
Copy link
Owner

I believe the problem lies in

conn, err := net.DialTimeout("tcp", address, 512*time.Millisecond)

Your server could be taking for than 512ms to respond for the initial check.
There're 3 options:

  • you can optimize your server
  • you can increase the limit to 1s
  • remove the server:port check

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