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
fix(functions): Refresh credentials before enqueueing first task (#907)
* fix(functions): Refresh credentials before enqueueing task
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.
* fix(functions): Move credential refresh to functions service init
* fix(functions): Moved credential refresh to run on task payload update with freshness guard
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments