App engine endpoints API - 404 with custom domain

江枫思渺然 提交于 2020-01-14 12:15:32

问题


I'm trying to use custom domain with app engine. Everything works fine with localhost and appspot url. But with custom domain endpoints api doesn't work; the API discovery request (https://cc.mdsarowar.me/_ah/api/discovery/v1/apis/conference/v1/rest) returns Not Found with error code 404.

Here is my app.yaml (full code):

- url: /_ah/spi/.*
  script: conference.api
  secure: optional

And endpoints api (full code):

@endpoints.api( name='conference',
            version='v1',
            allowed_client_ids=[WEB_CLIENT_ID, API_EXPLORER_CLIENT_ID],
            scopes=[EMAIL_SCOPE], hostname = 'cc.mdsarowar.me')
class ConferenceApi(remote.Service):
"""Conference API v0.1"""
........

Thanks in advance.


回答1:


As per the docs:

Note: Google Cloud Endpoints does not support custom domains.

Edit

There is an open feature request for this so you may want to star it.



来源:https://stackoverflow.com/questions/34612705/app-engine-endpoints-api-404-with-custom-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!