Error running endpointscfg.py get_swagger_spec

前端 未结 2 837
后悔当初
后悔当初 2021-01-23 16:03

I am trying to build a project using Google Cloud Endpoints, following this guide: Quickstart for Cloud Endpoints Frameworks on App Engine.

I am stuck at the step of gen

相关标签:
2条回答
  • 2021-01-23 16:24

    I had the exact same problem and tried the same things. What worked for me was:

    chmod +x lib/endpoints/endpointscfg.py
    

    Then running the command again.

    0 讨论(0)
  • 2021-01-23 16:27

    Rather than running it directly, try running it with Python, a la:

    python lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname your-service.appspot.com
    

    Tried that and it just worked for me. I'll try and make this better (either by fixing the docs or applying some fix in the repo), but that might get you what you need in the interim.

    0 讨论(0)
提交回复
热议问题