elastic / apm-agent-rum-js

https://www.elastic.co/guide/en/apm/agent/rum-js/current/index.html
MIT License
279 stars 137 forks source link

NotReadableError: The I/O read operation failed. #1451

Closed mijatovicjerkovic closed 1 year ago

mijatovicjerkovic commented 1 year ago

I am using apmBase imported from @elastic/apm-rum for an error handling plugin in a Nuxt 3 (vite) project. I cannot seem to understand why these errors appear in Kibana: Unhandled promise rejection: TypeError: NotReadableError: The I/O read operation failed.(inline script) Unhandled promise rejection: NotReadableError: The I/O read operation failed.

Both of them are coming from the var payloadStream = new Blob([payload]).stream(); line from (../../../../node_modules/@elastic/apm-rum-core/dist/es/common/compress.js:320:44

As it seems, this only happens on the client side.

In the previous projects I did not have these problems (using Webpack/Angular/Nuxt...)...

devcorpio commented 1 year ago

Hi @mijatovicjerkovic,

I have a few questions/requests:

Is your website publicly accessible? This would be helpful (in case the error is reproducible)

Cheers, Alberto

mijatovicjerkovic commented 1 year ago

Hi @devcorpio,

Website is publicly accessible, but I would prefer not to share it seeing as the reproduction of the error is not easily available.

Thank you.

mijatovicjerkovic commented 1 year ago

The problem is related to Safari security policies, more specifically aborting all fetches from the previous page.