jprq icon indicating copy to clipboard operation
jprq copied to clipboard

[ERROR]: cannot reach server on port 8000

Open curious-33 opened this issue 2 years ago • 4 comments

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

image

curious-33 avatar Apr 11 '23 19:04 curious-33

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?

azimjohn avatar Apr 11 '23 20:04 azimjohn

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 avatar Apr 12 '23 16:04 curious-33

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

curious-33 avatar Apr 12 '23 16:04 curious-33

I believe the problem lies in https://github.com/azimjohn/jprq/blob/9cd7b6050099d48998a02c33c2229c44b16c04e6/cli/main.go#L113

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

azimjohn avatar Apr 13 '23 09:04 azimjohn