Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctl sls fn invoke not handling function timeout correctly #1331

Open
rabbah opened this issue Dec 20, 2022 · 0 comments
Open

doctl sls fn invoke not handling function timeout correctly #1331

rabbah opened this issue Dec 20, 2022 · 0 comments

Comments

@rabbah
Copy link
Contributor

rabbah commented Dec 20, 2022

Describe the Issue:

Invoke a function that times out, e.g.:

> time doctl sls fn invoke sleep
Request accepted, but processing not completed yet. 
All functions invocation >= 30s will get demoted to an asynchronous invocation. Use --no-wait flag to immediately return the activation id. 

Use this command to view the results.
doctl sls activations result <nil> 


real	0m11.501s
user	0m0.043s
sys	0m0.024s

Observe that the activation id is <nil> and the response was a function timeout (confirmed with activation list) after ~10s not 30s. The error message is misleading and the id is missing.

I believe what's happening is that the response isn't handled correctly (the API response is (via the http path):

{"error":"The action exceeded its time limits of 10000 milliseconds during initialization."}

with no activation id in this case since the response terminate in time.

Environment:

  • doctl version: doctl version 1.91.1-release (sls version 5.0.18)
  • OS: macOS
  • Installation method: download from github release

Additional Details:

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

No branches or pull requests

2 participants