Skip to content

firebase deploy has changed the maximum length of a function name from 63 chars to 62 chars #3493

Closed

Description

@dteirney

[REQUIRED] Environment info

firebase-tools: 9.13.0

Platform: macOS

[REQUIRED] Test case

https://github.com/dteirney/functions-samples/blob/master/quickstarts/pubsub-helloworld/functions/index.js

[REQUIRED] Steps to reproduce

Try to deploy a function with a name with 63 characters that previously would deploy, but no longer does.

[REQUIRED] Expected behavior

Deploy succeeds as with previous versions.

[REQUIRED] Actual behavior

Error: [object Object] function name(s) can only contain letters, numbers, hyphens, and not exceed 62 characters in length

Activity

  1. google-oss-bot commented on Jun 15, 2021

    @google-oss-bot
    Collaborator

    This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

  2. dteirney commented on Jun 15, 2021

    @dteirney
    Author

    Updated comment with function-samples forked and with a 63 char name added.

  3. changed the title [-]firebase deploy has changed the maximum length of a function name from 63 chars to 62 chars[/-] [+]firebase deploy has changed the maximum length of a function name from 64 chars to 62 chars[/+] on Jun 15, 2021
  4. dteirney commented on Jun 15, 2021

    @dteirney
    Author

    Updated as we had a function name of 64 characters as well, which would previously deploy.

    Nope, was 63, sorry.

  5. changed the title [-]firebase deploy has changed the maximum length of a function name from 64 chars to 62 chars[/-] [+]firebase deploy has changed the maximum length of a function name from 63 chars to 62 chars[/+] on Jun 15, 2021
  6. samtstern commented on Jun 17, 2021

    @samtstern
    Contributor

    Hmmm the git blame on that line looks like this limitation has been in place for at least 2 years. @joehan or @inlined did yiou change something recently?

  7. samtstern commented on Jun 17, 2021

    @samtstern
    Contributor

    Based on the Cloud Functions console it looks like 63 is the correct limit, maybe this is a very old typo in our code:
    Screen Shot 2021-06-17 at 12 14 19 PM

  8. inlined commented on Jun 17, 2021

    @inlined
    Member

    The validate function has been in place for years, but the call to that function was commented out until recently. We can up the limit if the backend will accept it.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions