Auth0 Home Blog Docs

Saw |undefined| from -1001145053955


#1

wt logs shows this occasionally. It reports an error on line 249, but my code only has 149 lines.

[00:03:51.460Z]  INFO wt: Saw |undefined| from -1001145053955
[00:03:51.487Z]  INFO wt:
    {
      "code": 500,
      "error": "Script generated an unhandled synchronous exception.",
      "details": "TypeError: Cannot read property 'replace' of undefined",
      "name": "TypeError",
      "message": "Cannot read property 'replace' of undefined",
      "stack": "TypeError: Cannot read property 'replace' of undefined\n    at module.exports (/data/io/e154ec3c-3b50-41f0-90ed-c9d6afa785ba/webtask.js:249:25)\n    at Async.waterfall (/data/sandbox/lib/sandbox.js:542:33)\n    at nextTask (/data/sandbox/node_modules/async/dist/async.js:5324:14)\n    at next (/data/sandbox/node_modules/async/dist/async.js:5331:9)\n    at /data/sandbox/node_modules/async/dist/async.js:969:16\n    at read_body (/data/sandbox/lib/sandbox.js:427:32)\n    at getRawBody (/data/sandbox/lib/sandbox.js:618:24)\n    at invokeCallback (/data/sandbox/node_modules/raw-body/index.js:224:16)\n    at done (/data/sandbox/node_modules/raw-body/index.js:213:7)\n    at IncomingMessage.onEnd (/data/sandbox/node_modules/raw-body/index.js:273:7)"
    }

Any idea why?


#2

Can you submit a support ticket here? Please provide the url of your webtask that is generating this exception. I can look into it.


#3

I didn’t realise wt logs would combine logs from all my webtasks, so I was actually seeing console.log from another webtask!

Sorry and thanks!


#4

Glad you were able to figure out out.


#5