azimjohn/jprq

[ERROR]: cannot reach server on port 8000

Opened this issue · 4 comments

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

image

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?

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

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

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