Error running endpointscfg.py get_swagger_spec

前端 未结 2 839
后悔当初
后悔当初 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: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.

提交回复
热议问题