-
Notifications
You must be signed in to change notification settings - Fork 3
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
Report retrieval network errors #43
Comments
Currently, further error details will be printed to the operator's console, in Line 151 in a609849
Looking at https://developer.mozilla.org/en-US/docs/Web/API/fetch, only the error condition "If fetch throws a network error." makes sense here (unless we for some reason provided invalid arguments to fetch). It's not clear whether the network error can be caused by the client, the server, or both. MDN says this, but it could still be both:
Here are a few examples from Node.js:
Let's detect these well-known causes and report them in a machine-readable form in the measurements. For example, we can invent new HTTP status codes for this:
However: Spark makes fetch requests with Slack discussion: https://filecoinproject.slack.com/archives/C03PVLW721L/p1701174267028939 |
Hmm, this is more complex than we think. AFAICT, spark is always reporting Line 101 in a609849
And yet we have measurements where it’s set to |
In my Station module logs, I see that my SPARK checker is reporting measurements with
|
Over 40% retrievals fail with unknown error. Possibly because |
Thank you for the report here, let's see how things change with the new Spark version? And indeed it's a bit tricky to infer from the data which error happened exactly |
ETA: 2024-07-16
We are seeing measurements where
start_at
andfinished_at
are filled correctly, but:first_byte_at
andend_at
are set tonew Date(0)
status_code
isnull
timeout
isfalse
We think these measurements are created when the request
fetch('ipfs://...')
fails before receiving response headers.It would be great to get more insights into this case.
The text was updated successfully, but these errors were encountered: