TypeError: Invalid character in header content ["Authorization"]
at ClientRequest.setHeader (node:_http_outgoing:647:3)
at new ClientRequest (node:_http_client:284:14)
at Object.request (node:https:360:10)
at RedirectableRequest._performRequest (/home/runner/Chatgpt/node_modules/follow-redirects/index.js:284:24)
at new RedirectableRequest (/home/runner/Chatgpt/node_modules/follow-redirects/index.js:66:8)
at Object.request (/home/runner/Chatgpt/node_modules/follow-redirects/index.js:523:14)
at dispatchHttpRequest (/home/runner/Chatgpt/node_modules/axios/lib/adapters/http.js:242:25)
at new Promise (<anonymous>)
at httpAdapter (/home/runner/Chatgpt/node_modules/axios/lib/adapters/http.js:48:10)
at dispatchRequest (/home/runner/Chatgpt/node_modules/axios/lib/core/dispatchRequest.js:58:10) {
code: 'ERR_INVALID_CHAR'```
#```
22 messages · Page 1 of 1 (latest)
How to resolve this bro
show your code
thats not a single code
what should I provide
config.js or index.js
??
Wherever you use axios
"node_modules/openai": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/openai/-/openai-3.2.1.tgz",
"integrity": "sha512-762C9BNlJPbjjlWZi4WYK9iM2tAVAv0uUp1UmI34vb0CN5T2mjB/qM6RYBmNKMh/dN9fC+bxqPwWJZUTWW052A==",
"dependencies": {
"axios": "^0.26.0",
"form-data": "^4.0.0"
}
that...is your package.json
show the code where you use axios
and where the error is created
Im finding that, but can't find
: (
too many files
do u have any shortcut for it? : )
how would i know what code you wrote
you know which code you wrote and which code throws the error
okay will find and send you asap
: )
Did you write that code?
nope thats why I was seeking help : (