Using gcloud console for Google App Engine causes a Runtime error from metrics

后端 未结 2 1184
误落风尘
误落风尘 2021-01-13 02:42

I\'m trying to use the gcloud console through the browser. When I clone my repository and start the dev server, I get a runtime error from metrics:

$ dev_app         


        
相关标签:
2条回答
  • 2021-01-13 03:10

    dev_appserver.py metrics were recently added in the Cloud SDK version 144.0.0 for users who have opted-in during SDK installation. The Cloud SDK installation provided in the Cloud console at https://console.cloud.google.com is also opted in to using these metrics.

    In response to this post, we've added some additional logic to prevent this misleading error message in the future. This update will appear in one of the upcoming releases.

    0 讨论(0)
  • 2021-01-13 03:22

    I got this working by resolving an issue in my app.yaml file, one of my routes wasn't specified correctly.

    Fixing that route with a leading slash, and escaping the dot within the route regex, seemed to resolve the error too:

    diff --git a/app.yaml b/app.yaml
    index 8a165a0..39c68b3 100644
    --- a/app.yaml
    +++ b/app.yaml
    @@ -13,7 +13,7 @@ handlers:
     - url: /ui
       static_dir: ui
    
    -- url: robots.txt
    +- url: /robots\.txt$
       static_files: robots.txt
       upload: robots.txt
    
    0 讨论(0)
提交回复
热议问题