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
The package falsely (?) indicates that a server is not reachable if a page returns some HTTP error. I think this might be false-negative for HTTP errors like 404, in this case, the server is reachable, the client just tried to access some resource that doesn't exist, the server then decides to respond with a certain page.
I haven't tried any others, but I suspect this might be an issue with other 4xx errors too. Is a server reachable if the current request is not authenticated or unauthorized and therefore receives a 401 or 403?
👀 Example
I tried the following on Runkit, using version 4.0.0 of the package. To demonstrate that the server is indeed reachable I first tried requesting the base URL. To make sure this isn't simply a problem with requesting paths, I tried reaching a path I know exists. Lastly, I tried getting the status of a path I know doesn't exist.
The package falsely (?) indicates that a server is not reachable if a page returns some HTTP error. I think this might be false-negative for HTTP errors like
404
, in this case, the server is reachable, the client just tried to access some resource that doesn't exist, the server then decides to respond with a certain page.I haven't tried any others, but I suspect this might be an issue with other 4xx errors too. Is a server reachable if the current request is not authenticated or unauthorized and therefore receives a 401 or 403?
👀 Example
I tried the following on Runkit, using version
4.0.0
of the package. To demonstrate that the server is indeed reachable I first tried requesting the base URL. To make sure this isn't simply a problem with requesting paths, I tried reaching a path I know exists. Lastly, I tried getting the status of a path I know doesn't exist.Output:
Visiting that non-existing path in the browser returns a 404 error—as expected.
The text was updated successfully, but these errors were encountered: