You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1618 - Tried the solution proposed there but it did nothing
[REQUIRED] Version info
node:
v20.12.2
firebase-functions:
6.0.1
firebase-tools:
13.20.2
firebase-admin:
12.6.0
[REQUIRED] Test case
I am following this example from the docs to create a cloud task. The only thing I am changing in my project is adding an option to avoid retries. If I add this in firebase-functions v6, and launch the emulator or try to deploy, it breaks.
[REQUIRED] Steps to reproduce
Create a new project from scratch with firebase init. In my case, I added typescript but I think it is irrelevant.
Update firebase-functions in the package.json to v6.0.1
Add a new onTaskDispatched function to the index.ts file and add the retry option:
Run npm run serve or npm run deploy either way an error will show:
⬢ functions: Failed to load functiondefinition from source: FirebaseError: Failed to parse build specification
[REQUIRED] Expected behavior
The expected behavior should be for the emulator to create the queue. This behavior is achieved in version 5.1.0 for example:
✔ tasks: Created queue with key: queue:sample-project-us-central1-cloudTaskTest
✔ functions[us-central1-cloudTaskTest]: http functioninitialized (http://127.0.0.1:5001/sample-project/us-central1/cloudTaskTest).
[REQUIRED] Actual behavior
From version 6.0.1, the emulator returns the error copied above:
⬢ functions: Failed to load functiondefinition from source: FirebaseError: Failed to parse build specification
And if I try to deploy it returns:
Error: Failed to parse build specification:
- FirebaseError Unexpected key 'endpoints[cloudTaskTest].taskQueueTrigger.retry'. You may need to install a newer version of the Firebase CLI.
Were you able to successfully deploy your functions?
No, I was not able. The error message was:
Error: Failed to parse build specification:
- FirebaseError Unexpected key 'endpoints[cloudTaskTest].taskQueueTrigger.retry'. You may need to install a newer version of the Firebase CLI.
The text was updated successfully, but these errors were encountered:
Related issues
#1618 - Tried the solution proposed there but it did nothing
[REQUIRED] Version info
node:
v20.12.2
firebase-functions:
6.0.1
firebase-tools:
13.20.2
firebase-admin:
12.6.0
[REQUIRED] Test case
I am following this example from the docs to create a cloud task. The only thing I am changing in my project is adding an option to avoid retries. If I add this in firebase-functions v6, and launch the emulator or try to deploy, it breaks.
[REQUIRED] Steps to reproduce
firebase init
. In my case, I added typescript but I think it is irrelevant.firebase-functions
in thepackage.json
to v6.0.1onTaskDispatched
function to theindex.ts
file and add the retry option:npm run serve
ornpm run deploy
either way an error will show:[REQUIRED] Expected behavior
The expected behavior should be for the emulator to create the queue. This behavior is achieved in version 5.1.0 for example:
[REQUIRED] Actual behavior
From version 6.0.1, the emulator returns the error copied above:
And if I try to deploy it returns:
Error: Failed to parse build specification: - FirebaseError Unexpected key 'endpoints[cloudTaskTest].taskQueueTrigger.retry'. You may need to install a newer version of the Firebase CLI.
Were you able to successfully deploy your functions?
No, I was not able. The error message was:
Error: Failed to parse build specification: - FirebaseError Unexpected key 'endpoints[cloudTaskTest].taskQueueTrigger.retry'. You may need to install a newer version of the Firebase CLI.
The text was updated successfully, but these errors were encountered: