Skip to content

Crashlytics options are ignored #265

Closed

Description

@nathansamson

Given the following code I would expect it creates a function

  • in europe-west1
  • With only one instance
  • With access to the environment secret GITLAB_PERSONAL_ACCESS_TOKEN

None of them seem to be true

Image

Either I am doing something terribly wrong but in that case docs are wrong...

from firebase_functions import params
from firebase_functions.alerts import crashlytics_fn

import gitlab

GITLAB_PERSONAL_ACCESS_TOKEN = params.SecretParam("GITLAB_PERSONAL_ACCESS_TOKEN")

def post_issue_to_gitlab(crash_type, event) -> None:
    # Some code ...

@crashlytics_fn.on_new_fatal_issue_published(secrets=[GITLAB_PERSONAL_ACCESS_TOKEN], region="europe-west1", max_instances=1)
def post_fatal_issue_to_gitlab(event: crashlytics_fn.CrashlyticsNewFatalIssueEvent) -> None:
    post_issue_to_gitlab("Crashlytics - Fatal Crash", event)

Activity

  1. nathansamson commented on Dec 22, 2025

    @nathansamson
    Author

    Note, when I modify the following class class RuntimeOptions: in functions/venv/lib/python3.13/site-packages/firebase_functions/options.py and add the following code on line 367

    options_dict['region'] = 'europe-west1'
    options_dict['secrets'] = ['GITLAB_PERSONAL_ACCESS_TOKEN']
    options_dict['max_instances'] = 1
    

    Things start to work. I am still surprised why the options are not in the dict, as it should be initialized by this time. I guess its being reset somewhere...

    Problem is that there is so much meta programming going on, I am not sure where to start...

  2. added a commit that references this issue on Dec 22, 2025
    692e8dd
  3. CorieW commented on Jan 19, 2026

    @CorieW
    Member

    Hi @nathansamson,

    Thanks for reporting this issue! We've received it and will review it as soon as possible.

  4. CorieW commented on Jan 19, 2026

    @CorieW
    Member

    I've reproduced this issue.

  5. brunogabriel commented on May 19, 2026

    @brunogabriel

    Up, same problem here , region is ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions