Skip to content

Firebase Cloud function hit "Error: deadline-exceeded" #2528

@weilies

Description

@weilies

Version info

**Angular:**9.1.11

Firebase: 7.15.5

AngularFire: 6.0.2

Other (e.g. Ionic/Cordova, Node, browser, operating system): Chrome Browser, StackBlitz

How to reproduce these conditions

Firebase Cloud function always tieout in 1 min, regardless timeout maxed to 9min in Firebase console.
Detail screenshots and codes mentioned in StackOverflow
https://stackoverflow.com/questions/62587762/firebase-cloud-function-set-timeout-540s-but-ended-at-60s
Resolution (workaround) please search for section "Update as of 1 Jul"

Steps to set up and reproduce
Refer StackOverflow link above

Debug output

Refer StackOverflow link above

Expected behavior

Cloud function should process more than 1 min and less than 9min.
The main root cause is it doesn't allow us to set timeout option under httpCallable in AngularFire as mentioned here
FirebaseExtended/angularfire#983 (comment)

Actual behavior

Cloud function run for 500 seconds if usuing Firebase official SDK
Cloud function run at most 60 seconds if using AngularFire package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions