You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try:
results=ga.core.query.get()
exceptgoogleapiclient.errors.HttpErroraserr:
print(err) # TypeError: the JSON object must be str, not 'bytes'print(json.loads(err.content.decode('utf-8'))['error']['message']) # works
Environment:
Python 3.4.3
google-api-python-client==1.4.0
httplib2==0.9.1
oauth2client==1.4.7
six==1.9.0
uritemplate==0.6
The text was updated successfully, but these errors were encountered:
Environment:
The text was updated successfully, but these errors were encountered: