inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
414 stars 41 forks source link

[BUG] TypeError: Body has already been used #586

Open psteinroe opened 4 months ago

psteinroe commented 4 months ago

Describe the bug We are seeing error logs coming from Inngest thrown in getResponseError because the body has already been used. I do not know what the root error is, and is happening rarely, but I am a bit afraid this can lead to loss of data because we rely on inngest to be accepting events at all times. The full error is:

TypeError: Body has already been used. It can only be used once. Use tee() first if you need to read it twice. at Gl.getResponseError (index.js:25:50970) at Gl._send (index.js:25:53022) at async index.js:25:315335 at async Promise.all (index 0) at async index.js:25:315291 at async Promise.all (index 0) at async index.js:25:315244 at async i (index.js:25:229977) at async i (index.js:25:229977) at async index.js:25:246409

To Reproduce Repeatedly send events to inngest. We are running in cf worker.

linear[bot] commented 4 months ago

INN-3100 [BUG] TypeError: Body has already been used