Posts

Showing posts with the label google-app-engine

Google Endpoints API working in development but not when deployed

Image
Clash Royale CLAN TAG #URR8PPP Google Endpoints API working in development but not when deployed I am trying to deploy a cloud endpoints api so I can use it on my website. When I run it locally the api works fine (loads and works properly and doesn't give an error). However, when I upload to the web it doesn't load. (when I check api explorer I just get the yellow loading bar near the search and I can't get it to load using JavaScript) I checked both the logs on the local machine and the logs in the developers console but their isn't anything informative about the endpoints Based on suggestion here GAE cloud endpoints - Api not updating after deploy I checked my logs and found the following line "POST /_ah/spi/BackendService.getApiConfigs HTTP/1.1" 200 My endpoints has the following header @endpoints.api(name='treesruleApi', version='v1') In my app.yaml I have - url: /_ah/spi/.* script: api.APPLICATION I am not really expecting a solution but...

Using Requests module in Google App Engine

Image
Clash Royale CLAN TAG #URR8PPP Using Requests module in Google App Engine I want to use the requests module in Google App Engine Python Runtime Environment. requests Quote from official Google Cloud docs: You can use third-party libraries that are pure Python code with no C extensions, by copying the library into your application directory. If the third-party library is already built-in, bundled with the runtime, you can use the library without copying it into your app. Third party libraries must be implemented as pure Python code with no C extensions. If copied to your application directory, they count towards file quotas because the library is uploaded to App Engine along with your application code. requests isn't bundled with GAE, so I added it into my application folder according to the instructions. requests requests required a few other modules that don't come with GAE, so I added all of them to my application folder: requests certifi chardet idna urllib3 Another probl...