Skip to content
New issue

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

Axios Invalid URL #543

Open
renliangxa opened this issue Aug 8, 2024 · 4 comments
Open

Axios Invalid URL #543

renliangxa opened this issue Aug 8, 2024 · 4 comments
Labels
question Further information is requested

Comments

@renliangxa
Copy link

{"level":50,"time":1723100479595,"pid":6196,"hostname":"DESKTOP-B4HCQ71","name":"qryn","msg":"rawRequest error: CREATE DATABASE IF NOT EXISTS qryn "}
{"level":50,"time":1723100479597,"pid":6196,"hostname":"DESKTOP-B4HCQ71","name":"qryn","err":"Invalid URL\nTypeError: Invalid URL\n at new URL (node:internal/url:775:36)\n at dispatchHttpRequest (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:2701:20)\n at D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:2621:5\n at new Promise ()\n at wrapAsync (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:2601:10)\n at http (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:2639:10)\n at Axios.dispatchRequest (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:3622:10)\n at Axios._request (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:4001:33)\n at Axios.request (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:3871:25)\n at wrap (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:28:15)\n at Axios.request (D:\workspace\qryn\node_modules\axios\dist\node\axios.cjs:3876:41)\n at async Object.rawRequest (D:\workspace\qryn\lib\db\clickhouse.js:1386:12)\n at async upgradeRequest (D:\workspace\qryn\lib\db\maintain\index.js:88:3)\n at async upgradeSingle (D:\workspace\qryn\lib\db\maintain\index.js:49:5)\n at async module.exports.upgrade (D:\workspace\qryn\lib\db\maintain\index.js:21:3)\n at async initialize (D:\workspace\qryn\lib\db\clickhouse.js:191:5)\n at async D:\workspace\qryn\qryn_node.js:75:5","msg":"Error starting qryn"}

@lmangani
Copy link
Collaborator

lmangani commented Aug 8, 2024

Invalid URL

@renliangxa hard to understand the report without knowing the config or any details. Could you document the issue further?

@lmangani lmangani added the question Further information is requested label Aug 8, 2024
@renliangxa
Copy link
Author

Environment

  • OS windows
  • axios 1.6.8
    image

@renliangxa
Copy link
Author

fix:

  • clickhouse url delete clickhouseOptions.auth

image

  • request header add Basic Authorization param

image

  • To modify other axios calls to include Authorization header param

@lmangani
Copy link
Collaborator

lmangani commented Aug 8, 2024

I'm not sure I understand this report. If this is a change request, please feel free to submit a PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants