Skip to content

Error when passing secrets=list[SecretParam] #76

Closed
@kevinthecheung

Description

@kevinthecheung

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions