googlearchive/cloud-functions-emulator

Debugging - function execution attempt timed out

neilghosh opened this issue · 0 comments

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":

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

  1. Deploy any function with http trigger
    functions deploy myFunction --trigger-topic mytopic --entry-point setStatus
  2. Start debug mode functions inspect myFunction --pause
  3. add a debug point in first line of the function Google Chrome at chrome://inspect
  4. call the background function
    functions call myFunction --data='{"data":"eyJp..."}'
  5. 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!