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

Fn function times out before the actual timeout #1583

Open
nakashkumar opened this issue Feb 7, 2021 · 3 comments
Open

Fn function times out before the actual timeout #1583

nakashkumar opened this issue Feb 7, 2021 · 3 comments

Comments

@nakashkumar
Copy link

nakashkumar commented Feb 7, 2021

I have set the timeout in func.yaml to 300 seconds (5 minutes) but the function only runs for 2 minutes and then terminates with error code 502.

Error invoking function. status: 502 message: error receiving function response

As an example, I created a nodejs function which should respond after 270 seconds but doesn't due to early timeout.

fdk.handle(function(input){
    return new Promise((resolve,reject)=>{
        setTimeout(()=>resolve("Hello"),270000);
    });
})
@templecloud
Copy link
Contributor

How are you running your function? Locally via the fn server? Or using a cloud deployed version?

@nakashkumar
Copy link
Author

Tried both versions. Same result.

@ijse
Copy link

ijse commented Feb 5, 2022

there is timeout option in func.yaml

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

No branches or pull requests

3 participants