【发布时间】:2020-11-19 11:36:34
【问题描述】:
Activated service account credentials for: [***]
Updated property [core/project].
ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/home/runner/work/tm/tm/build/app.staging.yaml]
Unknown url handler type.
<URLMap
static_files=None
upload=None
application_readable=None
static_dir=None
mime_type=None
expiration=None
require_matching_file=None
http_headers={'Access-Control-Allow-Origin': '*'}
position=None
api_endpoint=None
redirect_http_response_code=None
url=None
login=optional
auth_fail_action=redirect
secure=default
script=None
>
in "/home/runner/work/tm/tm/build/app.staging.yaml", line 6, column 1
我确实在CORS Support 区域下阅读了https://cloud.google.com/appengine/docs/standard/nodejs/config/appref#handlers_element。它并没有提供有关必填字段等的任何信息。
我的app.staging.yaml 文件:
service: staging
runtime: nodejs12
handlers:
- http_headers:
url: /
Access-Control-Allow-Origin: '*'
【问题讨论】:
标签: google-app-engine cors gcloud