Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App engine endpoints API - 404 with custom domain

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.

like image 208
Sarowar Avatar asked Feb 08 '23 03:02

Sarowar


1 Answers

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.

like image 109
tx802 Avatar answered Feb 13 '23 06:02

tx802