When requesting the search route via REST I get this error in the Express logs:
### Search song
POST http://localhost:4001/search
Content-Type: application/json
{
"query": "fjaak"
}
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id"
Please describe the expected behaviour of the code.
I expected that the route logs the search results instead of an error
What are the steps to reproduce the error?
Pretty much just follow the steps in the documentation
Additional Information
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id"
at ClientRequest.setHeader (node:_http_outgoing:579:3)
at new ClientRequest (node:_http_client:256:14)
at Object.request (node:https:353:10)
at RedirectableRequest._performRequest (******-backend/node_modules/follow-redirects/index.js:279:24)
at new RedirectableRequest (******-backend/node_modules/follow-redirects/index.js:61:8)
at Object.request (******-backend/node_modules/follow-redirects/index.js:511:14)
at dispatchHttpRequest (******-backend/node_modules/axios/lib/adapters/http.js:262:25)
at new Promise (<anonymous>)
at httpAdapter (******-backend/node_modules/axios/lib/adapters/http.js:49:10)
at dispatchRequest (******-backend/node_modules/axios/lib/core/dispatchRequest.js:58:10) {
code: 'ERR_HTTP_INVALID_HEADER_VALUE'
}
[nodemon] app crashed - waiting for file changes before starting...
Please describe the current behaviour of the code.
I copy pasted the code snippets from the Usage section of the documentation:
When requesting the search route via REST I get this error in the Express logs:
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "X-Goog-Visitor-Id"
Please describe the expected behaviour of the code.
I expected that the route logs the search results instead of an error
What are the steps to reproduce the error?
Pretty much just follow the steps in the documentation
Additional Information