Debugging - function execution attempt timed out
neilghosh opened this issue · 0 comments
neilghosh commented
Thanks for stopping by to let us know something could be better!
Please run down the following list and make sure you've tried the usual "quick
fixes":
- Check the Emulator's docs
- Check the Emulator's self-help:
functions --help
orfunctions-emulator --help
- Search the issues already opened: https://github.com/GoogleCloudPlatform/cloud-functions-emulator/issues
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
If you are still having issues, please be sure to include as much information as
possible:
Environment details
- OS: Mac OSx
- Node.js version: v6.14.4
- npm version:3.10.10
- @google-cloud/functions-emulator version: 1.0.0-beta.5
Steps to reproduce
- Deploy any function with http trigger
functions deploy myFunction --trigger-topic mytopic --entry-point setStatus - Start debug mode functions inspect myFunction --pause
- add a debug point in first line of the function Google Chrome at chrome://inspect
- call the background function
functions call myFunction --data='{"data":"eyJp..."}' - control stops at the breakpoint but after a minute or so it crashes with the following message in console.
ExecutionId: d3a5ff97-4ea1-4416-97e7-b6ac08043bd8
Error: { error:
{ code: 500,
status: 'INTERNAL',
message: 'function execution attempt timed out' } }
Is there a way I could increase the timeout because debugging can take several minutes. any workaround?
Following these steps will guarantee the quickest resolution possible.
Thanks!