Skip to content

Instantly share code, notes, and snippets.

@amite
Created December 2, 2017 14:35
Show Gist options
  • Save amite/68cc942b3f8b487a86cc66042d69bb8a to your computer and use it in GitHub Desktop.
Save amite/68cc942b3f8b487a86cc66042d69bb8a to your computer and use it in GitHub Desktop.
lambda stack trace for aunch_scrapers function
{ StatusCode: 200,
FunctionError: 'Handled',
LogResult: 'U1RBUlQgUmVxdWVzdElkOiBkNjJmNGE1Yy1kNzZkLTExZTctYWU0Yy1kNWNlNTgzOGI2ZjAgVmVyc2lvbjogJExBVEVTVAoyMDE3LTEyLTAyVDE0OjM0OjAxLjAwMloJZDYyZjRhNWMtZDc2ZC0xMWU3LWFlNGMtZDVjZTU4MzhiNmYwCXsiZXJyb3JNZXNzYWdlIjoiRXJyb3Igc2NyYXBpbmcgbWlzc2lvbi1kb2xvcmVzLXBhcmstc2FuLWZyYW5jaXNjbzogXCJFcnJvciBwYXJzaW5nIHBhZ2U6IHt9XCIiLCJlcnJvclR5cGUiOiJFcnJvciIsInN0YWNrVHJhY2UiOlsiZ2V0UGFnZS50aGVuLnRoZW4udGhlbi5jYXRjaC5lcnJvciAoL3Zhci90YXNrL2hhbmRsZXIuanM6MjU6MTYpIiwidHJ5Q2F0Y2hlciAoL3Zhci90YXNrL25vZGVfbW9kdWxlcy9ibHVlYmlyZC9qcy9yZWxlYXNlL3V0aWwuanM6MTY6MjMpIiwiUHJvbWlzZS5fc2V0dGxlUHJvbWlzZUZyb21IYW5kbGVyICgvdmFyL3Rhc2svbm9kZV9tb2R1bGVzL2JsdWViaXJkL2pzL3JlbGVhc2UvcHJvbWlzZS5qczo1MTI6MzEpIiwiUHJvbWlzZS5fc2V0dGxlUHJvbWlzZSAoL3Zhci90YXNrL25vZGVfbW9kdWxlcy9ibHVlYmlyZC9qcy9yZWxlYXNlL3Byb21pc2UuanM6NTY5OjE4KSIsIlByb21pc2UuX3NldHRsZVByb21pc2UwICgvdmFyL3Rhc2svbm9kZV9tb2R1bGVzL2JsdWViaXJkL2pzL3JlbGVhc2UvcHJvbWlzZS5qczo2MTQ6MTApIiwiUHJvbWlzZS5fc2V0dGxlUHJvbWlzZXMgKC92YXIvdGFzay9ub2RlX21vZHVsZXMvYmx1ZWJpcmQvanMvcmVsZWFzZS9wcm9taXNlLmpzOjY4OToxOCkiLCJBc3luYy5fZHJhaW5RdWV1ZSAoL3Zhci90YXNrL25vZGVfbW9kdWxlcy9ibHVlYmlyZC9qcy9yZWxlYXNlL2FzeW5jLmpzOjEzMzoxNikiLCJBc3luYy5fZHJhaW5RdWV1ZXMgKC92YXIvdGFzay9ub2RlX21vZHVsZXMvYmx1ZWJpcmQvanMvcmVsZWFzZS9hc3luYy5qczoxNDM6MTApIiwiSW1tZWRpYXRlLkFzeW5jLmRyYWluUXVldWVzICgvdmFyL3Rhc2svbm9kZV9tb2R1bGVzL2JsdWViaXJkL2pzL3JlbGVhc2UvYXN5bmMuanM6MTc6MTQpIiwicnVuQ2FsbGJhY2sgKHRpbWVycy5qczo2NzI6MjApIiwidHJ5T25JbW1lZGlhdGUgKHRpbWVycy5qczo2NDU6NSkiLCJwcm9jZXNzSW1tZWRpYXRlIFthcyBfaW1tZWRpYXRlQ2FsbGJhY2tdICh0aW1lcnMuanM6NjE3OjUpIl19CkVORCBSZXF1ZXN0SWQ6IGQ2MmY0YTVjLWQ3NmQtMTFlNy1hZTRjLWQ1Y2U1ODM4YjZmMApSRVBPUlQgUmVxdWVzdElkOiBkNjJmNGE1Yy1kNzZkLTExZTctYWU0Yy1kNWNlNTgzOGI2ZjAJRHVyYXRpb246IDY5Ny4zOSBtcwlCaWxsZWQgRHVyYXRpb246IDcwMCBtcyAJTWVtb3J5IFNpemU6IDEwMjQgTUIJTWF4IE1lbW9yeSBVc2VkOiAxMDcgTUIJCg==',
ExecutedVersion: '$LATEST',
Payload: '{"errorMessage":"Error scraping mission-dolores-park-san-francisco: \\"Error parsing page: {}\\"","errorType":"Error","stackTrace":["getPage.then.then.then.catch.error (/var/task/handler.js:25:16)","tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23)","Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:512:31)","Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:569:18)","Promise._settlePromise0 (/var/task/node_modules/bluebird/js/release/promise.js:614:10)","Promise._settlePromises (/var/task/node_modules/bluebird/js/release/promise.js:689:18)","Async._drainQueue (/var/task/node_modules/bluebird/js/release/async.js:133:16)","Async._drainQueues (/var/task/node_modules/bluebird/js/release/async.js:143:10)","Immediate.Async.drainQueues (/var/task/node_modules/bluebird/js/release/async.js:17:14)","runCallback (timers.js:672:20)","tryOnImmediate (timers.js:645:5)","processImmediate [as _immediateCallback] (timers.js:617:5)"]}' }
{ StatusCode: 200,
LogResult: 'U1RBUlQgUmVxdWVzdElkOiBkNjMwMGRiYS1kNzZkLTExZTctYWM4YS0zN2M1MzM3MzQ5OGUgVmVyc2lvbjogJExBVEVTVApFTkQgUmVxdWVzdElkOiBkNjMwMGRiYS1kNzZkLTExZTctYWM4YS0zN2M1MzM3MzQ5OGUKUkVQT1JUIFJlcXVlc3RJZDogZDYzMDBkYmEtZDc2ZC0xMWU3LWFjOGEtMzdjNTMzNzM0OThlCUR1cmF0aW9uOiAzMDI0LjQ4IG1zCUJpbGxlZCBEdXJhdGlvbjogMzEwMCBtcyAJTWVtb3J5IFNpemU6IDEwMjQgTUIJTWF4IE1lbW9yeSBVc2VkOiAxMDQgTUIJCg==',
ExecutedVersion: '$LATEST',
Payload: '{"statusCode":200,"body":"{\\"message\\":\\"Scraped the-presidio-san-francisco\\"}"}' }
{ StatusCode: 200,
LogResult: 'U1RBUlQgUmVxdWVzdElkOiBkNjJmYzAyYi1kNzZkLTExZTctYTYxYi0yZjViNzQ2YjIzNmMgVmVyc2lvbjogJExBVEVTVApFTkQgUmVxdWVzdElkOiBkNjJmYzAyYi1kNzZkLTExZTctYTYxYi0yZjViNzQ2YjIzNmMKUkVQT1JUIFJlcXVlc3RJZDogZDYyZmMwMmItZDc2ZC0xMWU3LWE2MWItMmY1Yjc0NmIyMzZjCUR1cmF0aW9uOiAzMzA4LjY3IG1zCUJpbGxlZCBEdXJhdGlvbjogMzQwMCBtcyAJTWVtb3J5IFNpemU6IDEwMjQgTUIJTWF4IE1lbW9yeSBVc2VkOiA5NiBNQgkK',
ExecutedVersion: '$LATEST',
Payload: '{"statusCode":200,"body":"{\\"message\\":\\"Scraped yerba-buena-gardens-san-francisco\\"}"}' }
@amite
Copy link
Author

amite commented Dec 2, 2017

The key part seems to be:

"Error","stackTrace":["getPage.then.then.then.catch.error (/var/task/handler.js:25:16)","tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23)","Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:512:31)","Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:569:18)","Promise._settlePromise0 (/var/task/node_modules/bluebird/js/release/promise.js:614:10)","Promise._settlePromises (/var/task/node_modules/bluebird/js/release/promise.js:689:18)","Async._drainQueue (/var/task/node_modules/bluebird/js/release/async.js:133:16)","Async._drainQueues (/var/task/node_modules/bluebird/js/release/async.js:143:10)","Immediate.Async.drainQueues (/var/task/node_modules/bluebird/js/release/async.js:17:14)","runCallback (timers.js:672:20)","tryOnImmediate (timers.js:645:5)","processImmediate [as _immediateCallback] (timers.js:617:5)"]}' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment