Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

ERROR: (gcloud.beta.functions.deploy) argument --entry-point #1

@mrdulin

Description

@mrdulin

执行:

gcloud beta functions deploy --entry-point=./index.js --trigger-resource ${TOPIC} --trigger-event google.pubsub.topic.publish

报错:

ERROR: (gcloud.beta.functions.deploy) argument --entry-point: Invalid value './index.js': Entry point name must contain only Latin letters (lower- or upper-case), digits, dot (.) and underscore (_), and must be at most 128 characters long. It can neither begin nor end with a dot (.), nor contain two consecutive dots (..).
Usage: gcloud beta functions deploy NAME [optional flags]
  optional flags may be  --clear-labels | --entry-point | --help | --memory |
                         --region | --remove-labels | --retry | --source |
                         --stage-bucket | --timeout | --trigger-bucket |
                         --trigger-event | --trigger-http | --trigger-resource |
                         --trigger-topic | --update-labels

For detailed information on this command and its flags, run:
  gcloud beta functions deploy --help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions