We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a project that uses the request method from this package in this simple form:
request({ uri: `${this.endpoint + path}`, json: true })
When ran on node, this resolves just fine. When ran on a browser, such as a Vue component, it produces the following error:
TypeError: Response.text: Body has already been consumed. body urequest.js:168 promise callback*request urequest.js:167 ...
I narrowed this down to different behavior between the server-side request.js file and the client-side urequest.js. While the former has a routine to ensure either url or uri work fine, the latter does not and seems to only try using the empty url key.
request.js
urequest.js
Is this difference at all intentional?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a project that uses the request method from this package in this simple form:
When ran on node, this resolves just fine. When ran on a browser, such as a Vue component, it produces the following error:
I narrowed this down to different behavior between the server-side
request.js
file and the client-sideurequest.js
. While the former has a routine to ensure either url or uri work fine, the latter does not and seems to only try using the empty url key.Is this difference at all intentional?
The text was updated successfully, but these errors were encountered: