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.

HttpLib2 Missing Header Error When Timezone Is Incorrect

See original GitHub issue

Environment details

  • OS type and version: OSX
  • Python version: Python 3.7.4
  • pip version: pip 20.2.2
  • google-api-python-client version: Version: 1.10.0

Steps to reproduce

When calling this API endpoint:

https://developers.google.com/bid-manager/v1.1/queries/createquery

With this field set to ( should be “America/Los_Angeles” ):

timezoneCode:“Los Angeles/America”

The following error shows up consistently at the wrong layer:

httplib2.RedirectMissingLocation: Redirected but response is missing a location: header

Code example

See above.

This is a bug that took hours to track down because the error is manifesting in httplib. Which is the wrong layer to catch this.

Lookin online this crops up every few months and burns a bunch of time. Hopefully having this be reproducible will help.

PS: Look me up at Google if you need to reproduce.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
RDelbangoUmbrellacommented, Jun 29, 2021
1reaction
joereecommented, Jun 29, 2021

I second the fact that the problem is happening again. However I don’t believe that the issue is caused by the timezone being incorrect. Below is a traceback for this:

    return wrapped(*args, **kwargs)
  File "/gaia/.local/lib/python3.6/site-packages/googleapiclient/http.py", line 846, in execute
    method=str(self.method), body=self.body, headers=self.headers)
  File "/gaia/.local/lib/python3.6/site-packages/googleapiclient/http.py", line 164, in _retry_request
    resp, content = http.request(uri, method, *args, **kwargs)
  File "/gaia/.local/lib/python3.6/site-packages/google_auth_httplib2.py", line 198, in request
    uri, method, body=body, headers=request_headers, **kwargs)
  File "/gaia/.local/lib/python3.6/site-packages/httplib2/__init__.py", line 1976, in request
    cachekey,
  File "/gaia/.local/lib/python3.6/site-packages/httplib2/__init__.py", line 1679, in _request
    content,
httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python: Httplib2 Module Not Found - Stack Overflow
I tried to import the module but i am getting the error shown below:- sh-3.2 ...
Read more >
Changelog - Python client library | Google Cloud
missing license headers in new test files (#604) (df48cc5) ... invalid conversion of timezone-aware datetime values to JSON (#480) (61b4385).
Read more >
shotgun_api3.shotgun — python-api v3.3.4 documentation
[docs]class MissingTwoFactorAuthenticationFault(Fault): """ Exception when the server side reports an error related to missing two-factor authentication ...
Read more >
Before you contact support: Gather key information
Before contacting Google for help with your Google Workspace or Cloud Identity account, you can help us by gathering information about your issue....
Read more >
What's New — pandas 0.18.0 documentation - PyData |
pandas >= 0.18.0 no longer supports compatibility with Python version 2.6 and 3.3 ... Bug in DataFrame.to_latex() produces an extra rule when header=False...
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