Skip to content

Error when passing secrets=list[SecretParam] #76

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

Closed
kevinthecheung opened this issue May 1, 2023 · 0 comments · Fixed by #82
Closed

Error when passing secrets=list[SecretParam] #76

kevinthecheung opened this issue May 1, 2023 · 0 comments · Fixed by #82

Comments

@kevinthecheung
Copy link
Collaborator

Passing a list[SecretParam] as the value of secrets= like this:

DISCORD_WEBHOOK_URL = params.SecretParam("DISCORD_WEBHOOK_URL")

@crashlytics_fn.on_new_fatal_issue_published(secrets=[DISCORD_WEBHOOK_URL])

Causes this error:

- FirebaseError HTTP Error: 400, The provided Secret Version ID [projects/1718007911/secrets/{{ params.DISCORD_WEBHOOK_URL }}/versions/latest] does not match the expected format [projects/*/secrets/*/versions/*]

secrets=["DISCORD_WEBHOOK_URL"] works as expected.

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 a pull request may close this issue.

1 participant