Skip to content

fix(functions): Refresh credentials before enqueueing first task #907

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jonathanedey
Copy link
Contributor

@jonathanedey jonathanedey commented Aug 20, 2025

This change addresses #899 where enqueueing a task from a Cloud Function would fail with an InvalidArgumentError error. This was caused by uninitialized credentials being used to in the first task payload sent.

The fix explicitly refreshes the credential before accessing the credential, ensuring a valid token or service account email is used in the in the task payload.

This also includes a correction for an f-string typo in the Authorization header construction which could affect Firebase Extensions running with Google Compute Engine credentials.

google-labs-jules bot and others added 2 commits August 20, 2025 13:24
This change addresses an issue where enqueueing a task from a Cloud Function would fail with a InvalidArgumentError error. This was caused by uninitialized credentials being used to in the task payload.

The fix explicitly refreshes the credential before accessing the credential, ensuring a valid token or service account email is used in the in the task payload.

This also includes a correction for an f-string typo in the Authorization header construction.
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

Successfully merging this pull request may close these issues.

2 participants