GAE_USE_SOCKETS_HTTPLIB interferes with Google Api Python Client
See original GitHub issue- Operating System version: OSX 10.12.6
- Firebase SDK version: Firebase Admin Python SDK 2.4.0
When using the SDK within an App Engine environment, the docs require you do some extra configuration. Within that configuration you have to add the following variables to your app.yaml
libraries:
- name: ssl
version: latest
env_variables:
GAE_USE_SOCKETS_HTTPLIB: 'true'
However, this introduces an error within app engine that breaks any requests that have to do with the google api python client library. Through some research I found this question that explains my issue.
Is there a workaround that permits the use GAE_USE_SOCKETS_HTTPLIB in order for firebase to function properly as well as being able to use google api client library within app engine such as:
from apiclient.discovery import build
service = build('calendar', 'v3')
# etc...
I am fairly new to python, I apologize if this questions seems out of place.
Thank you in advance for you feedback.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Google API Python client error - Stack Overflow
I found the solution! You should create another Client ID, but for desktop application! After that you need to use it's client_id and...
Read more >googleapis/google-api-python-client - GitHub
virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions....
Read more >Python quickstart | People API - Google Developers
Quickstarts explain how to set up and run an app that calls a Google Workspace API. Google Workspace quickstarts use the API client...
Read more >google-api-python-client - PyPI
virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions....
Read more >Using the Python client library | AI Platform Prediction
This tutorial describes how to use the Google API Client Library for Python to call the AI Platform Prediction REST APIs in your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Removing the environment variable did the trick for both development and production. Thank you so much for your help and the detailed explanation @hiranya911
Thanks @giusepperj. I will update our documentation, so that step is no longer mentioned as required.