Hello, I've been observing my service more and mor...
# support-questions-legacy
m
Hello, I've been observing my service more and more. I noticed that sometime I got this error (but most of the time it is okay) is it normal?
Copy code
Invoke Error     {"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400\n    at createError (/var/task/node_modules/supertokens-node/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/var/task/node_modules/supertokens-node/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/var/task/node_modules/supertokens-node/node_modules/axios/lib/adapters/http.js:269:11)\n    at IncomingMessage.emit (node:events:525:35)\n    at endReadableNT (node:internal/streams/readable:1358:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)","config":{"url":"https://accounts.google.com/o/oauth2/token","method":"post","data":"client_id=546802929265-n326c4t6pihu8bkubedsf757ermq3ej9.apps.googleusercontent.com&client_secret=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&grant_type=authorization_code&code=4%2F0Adeu5BXsyT_gmJCK3b9icU0PvejHwKjkHgfR5ypOVhuF9OIaWEcDizyLnil81VA5sfMwug&redirect_uri=https%3A%2F%2Fdarisini.com%2Fauth%2Fcallback%2Fgoogle","headers":{"Accept":"application/json","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/0.21.4","Content-Length":310},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false}}}
sometime I got this as well
Copy code
ERR SessionError {
  type: 'UNAUTHORISED',
  message: 'Session missing in db',
  payload: { clearCookies: true },
  errMagic: 'ndskajfasndlfkj435234krjdsa',
  fromRecipe: 'session'
}
r
Hey. The 400 error usually means the request body is malformed. How are you sending the request?
And unauthorised just means here that the session was revoked in offline mode somehow
4 Views