OidcServiceWorker.js: Failed to execute 'clone' on 'Request': Request body is already used
See original GitHub issueIssue and Steps to Reproduce
Configuration:
{
client_id: 'myapp',
redirect_uri: window.location.origin + '/authentication/callback',
post_logout_redirect_uri: window.location.origin + '/authentication/logout-callback',
scope: 'openid profile email roles offline_access',
authority: window.location.origin,
service_worker_relative_url: '/OidcServiceWorker.js',
service_worker_only:false,
}
Versions
5.13.1
Screenshots
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Error: Request object that has already been used
I'm getting this now: Uncaught (in promise) TypeError: Failed to execute 'clone' on 'Request': Request body is already used. – Julian Sanchez ·...
Read more >Request.clone() not duplicating body stream · Issue #5951
And the server throws error: Uncaught TypeError: Failed to execute 'clone' on 'Response': Response body is already used because the body stream ...
Read more >Response.clone() - Web APIs - MDN Web Docs
clone () throws a TypeError if the response body has already been used. ... clone live) we create a new Request object using...
Read more >What happens when you read a response?
The new fetch API gives the web proper Request and Response primitives. ... parsing as JSON failed, let's get the text response.body.
Read more >node-fetch
A light-weight module that brings Fetch API to node.js. ... Use native Node streams for body, on both request and response.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the bug by hazard !
You can try the 6.0.0-alpha2 pretty stable (I have just to finish documentation) and it fix it.
https://github.com/AxaGuilDEv/react-oidc/blob/295776fbfeabde78f6d39ae5326f3a7da5050a11/MIGRATION_GUIDE_V5_TO_V6.md
I will try to prepare an example for you as soon as possible.