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 was expecting to be able to use axios to get files also using the file://... scheme. But it doesn't work.
file://...
I don't think this is the same as #2416 (or #2558), since this fails pretty hard.
$ echo 'require("axios").get("file://path/to/file")' | node triggerUncaughtException(err, true /* fromPromise */); ^ AssertionError [ERR_ASSERTION]: protocol mismatch at Object.request (/home/pmorch/work/try/my-extension/node_modules/follow-redirects/index.js:521:14) at dispatchHttpRequest (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:2816:21) at /home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:2538:5 at new Promise (<anonymous>) at wrapAsync (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:2518:10) at http (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:2544:10) at Axios.dispatchRequest (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:3487:10) at Axios.request (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:3843:33) at Axios.<computed> [as get] (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:3869:17) at Function.wrap [as get] (/home/pmorch/work/try/my-extension/node_modules/axios/dist/node/axios.cjs:29:15) { generatedMessage: false, code: 'ERR_ASSERTION', actual: 'file:', expected: 'http:', operator: '==' } Node.js v18.12.1
See above
I expect to be able to get files too
1.3.5
I don't know
node.js
No response
v18.12.1
Linux
The text was updated successfully, but these errors were encountered:
same issue
Sorry, something went wrong.
me too
fix: remediate file protocol mismatch (axios#5648)
cb2b907
Successfully merging a pull request may close this issue.
Describe the bug
I was expecting to be able to use axios to get files also using the
file://...
scheme. But it doesn't work.I don't think this is the same as #2416 (or #2558), since this fails pretty hard.
To Reproduce
Code snippet
Expected behavior
I expect to be able to get files too
Axios Version
1.3.5
Adapter Version
I don't know
Browser
node.js
Browser Version
No response
Node.js Version
v18.12.1
OS
Linux
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: