Closed AW0005 closed 7 months ago
This is working as designed. The remote end closed before the entire response was sent. Deno throws the error, and if your application needed to clean up some resources or invalidate something in the server because a response was not fully sent you could do so, otherwise it can be ignored. If you don't want any anything to print out, you need to implement your own error listener on the application and decide how you will respond to these.
The full error:
And a minimal reproducible setup (on deno v1.38.0):
If a request response takes any time at all, and you aggressively refresh the page, you'll get the connection error. In my actual use case I have some calls that take some time to return so it is completely plausible the user navigates away in the meantime, and it generates this error sometimes in the log. Is there anyway I can get rid of this error myself or is it something that needs to be fixed on Oak's side or is this something in deno and I should be reporting it over there? Any help appreciated.
Tangentially I have also experienced a similar "Http - connection error: broken pipe: broken pipe" and "BadResource - Bad resource ID" that I suspect comes from a similar situation but I have not been able to reproduce that as easily as this one.