question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
giuseppecrjcommented, Nov 11, 2017

Removing the environment variable did the trick for both development and production. Thank you so much for your help and the detailed explanation @hiranya911

0reactions
hiranya911commented, Nov 11, 2017

Thanks @giusepperj. I will update our documentation, so that step is no longer mentioned as required.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found