(Vercel error today) TypeError: Failed to execute 'fetch' on 'window': …with a request object that has already been used

I’m getting this error when using React Toolkit on POST requests. No changes were made to my application and all was working. Some change was made by Vercel today regarding fetch() or something related that is causing this.

Can be reproduced by trying a POST request with react toolkit.

Hi! I’ll link the GitHub issue that you opened at Posthog just to track it here too, in case other folks have the same issue: fetch() broken on August 19: TypeError: failed to execute 'fetch' on 'window': …with a request object that has already been used · Issue #24471 · PostHog/posthog · GitHub

The fix was apparently released in posthog-js@1.157.1 (GitHub comment).

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.