We’re also seeing this error now too. For some reason, it tends to happen in burst for us, but it’s affecting quite a few calls to the back end now. We’re on version 0.48
We’re seeing 10-100 calls an hour end with the error:
{
"deploymentId": "dpl_4xtBDPTaauCLKjS95d24zuY7Vhfv",
"host": "core-g9b53d65i-buildpass.vercel.app",
"id": "1649201843107916034332372403",
"message": "START RequestId: 63555b90-79de-4937-bd26-f0eef260927c Version: $LATEST\n2022-04-05T23:38:01.600Z\t63555b90-79de-4937-bd26-f0eef260927c\tERROR\tUncaught Exception \t{\"errorType\":\"TypeError\",\"errorMessage\":\"Cannot read property 'getPublicKey' of undefined\",\"stack\":[\"TypeError: Cannot read property 'getPublicKey' of undefined\",\" at /var/task/node_modules/@redwoodjs/api/dist/auth/decoders/auth0.js:57:29\",\" at cb (util.js:290:31)\",\" at __node_internal_ (util.js:266:10)\",\" at processTicksAndRejections (internal/process/task_queues.js:82:21)\"]}\nEND RequestId: 63555b90-79de-4937-bd26-f0eef260927c\nREPORT RequestId: 63555b90-79de-4937-bd26-f0eef260927c\tDuration: 38501.47 ms\tBilled Duration: 38502 ms\tMemory Size: 1024 MB\tMax Memory Used: 355 MB\t\nUnknown application error occurred\n\n",
"parsedLambdaMessage": {
"lines": {
"data": {
"errorMessage": "Cannot read property 'getPublicKey' of undefined",
"errorType": "TypeError",
"stack": [
"TypeError: Cannot read property 'getPublicKey' of undefined",
" at /var/task/node_modules/@redwoodjs/api/dist/auth/decoders/auth0.js:57:29",
" at cb (util.js:290:31)",
" at __node_internal_ (util.js:266:10)",
" at processTicksAndRejections (internal/process/task_queues.js:82:21)"
]
},
"level": "error",
"message": "Uncaught Exception \t",
"timestamp": "2022-04-05T23:38:01.600Z"
},
"parse_status": "full",
"report": {
"billed_duration_ms": 38502,
"duration_ms": 38501,
"max_memory_used_mb": 355,
"memory_size_mb": 1024
},
"request_id": "63555b90-79de-4937-bd26-f0eef260927c"
},
"path": "api/graphql",
"projectId": "QmUh5xiTAcH85Ldy3DXWSF7wtwTwhfUtaWKEJcDgGwi2DA",
"proxy": {
"clientIp": "1.145.197.83",
"host": "api.buildpass.com.au",
"method": "POST",
"path": "/api/graphql",
"region": "syd1",
"scheme": "https",
"statusCode": 500,
"timestamp": 1649201843105,
"userAgent": "BuildPass/1.0.63 CFNetwork/1329 Darwin/21.3.0"
},
"source": "lambda",
"statusCode": -1,
"timestamp": 1649201843107
}