这是indexloc提供的服务,不要输入任何密码
Skip to content

🐛 [firestore-bigquery-export] Cloud function name size gives error on upgrade #2443

@abarone-btf

Description

@abarone-btf

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to
    Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: _firestore-bigquery-export
  • Extension version: _0.2.5
  • Configuration values (redact info where appropriate): N/A

[REQUIRED] Step 3: Describe the problem

I tried to update my extensions from 0.1.X to 0.2.X and it always gives me error for name length. The problem is that I cannot change the name of the extension or the name of the function so the only way I see feasible to upgrade my extensions is to remove it and to create them again (which will cause some problems and inconsistency in my data plus operational overhead).

This is the error when trying to upgrade it:

; RESOURCE_ERROR at /deployments/firebase-ext-firestore-bigquery-export-player-leaderb-pos/resources/fsexportbigquery: {"ResourceType":"gcp-types/cloudfunctions-v2beta:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Invalid Request. Violations: {Violation in Function.name=Invalid function_id. Must start with a letter, can only contain [-_a-zA-Z0-9] and be between 4-63 characters.}","status":"INVALID_ARGUMENT","statusMessage":"Bad Request","requestPath":"https://cloudfunctions.googleapis.com/v2beta/projects/MY_PROJECT_ID/locations/us-central1/functions","httpMethod":"POST"}}

I think prior to 0.2 the cloud functions name was cut when surpassing the length (because it never gives my trouble, and some functions in fact get cut, like "ext-firestore-bigquery-export-player-communities-fsexportbigque"), something of that sort can be made here?, to avoid this type of error which are very annoying in terms of resolution from my end :(. Or is it a better way?

EDIT: Looks similar to 2409

Thanks for your help

Steps to reproduce:

Just upgrade the extension using the console, keeping all my previous values and default settings

Expected result

To upgrade the extension without problems, and if the function name is greater in len to cut them down, or to allow resolution when updating it (to avoid deleting and re creating)

Actual result

Explained above, but here is the error message:

; RESOURCE_ERROR at /deployments/firebase-ext-firestore-bigquery-export-player-leaderb-pos/resources/fsexportbigquery: {"ResourceType":"gcp-types/cloudfunctions-v2beta:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Invalid Request. Violations: {Violation in Function.name=Invalid function_id. Must start with a letter, can only contain [-_a-zA-Z0-9] and be between 4-63 characters.}","status":"INVALID_ARGUMENT","statusMessage":"Bad Request","requestPath":"https://cloudfunctions.googleapis.com/v2beta/projects/MY_PROJECT_ID/locations/us-central1/functions","httpMethod":"POST"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions