wagalytics icon indicating copy to clipboard operation
wagalytics copied to clipboard

Fix GA_KEY_CONTENT OpenSSL crypto error

Open kleberbaum opened this issue 5 years ago • 1 comments

Checklist:

  • [x] Have you added an explanation of what your changes do and why you'd like them to be included?
  • [ ] Have you updated or added documentation for the change?
  • [x] Have you tested your changes with successful results?

Type of Changes:

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

What is the current behavior? (link to any open issues here)

  • Currently the GA_KEY_CONTENT option triggers a OpenSSL crypto error. #25

What is the new behavior (if this is a feature change)?

  • Now GA_KEY_CONTENT works fine. Closes #25

Other information: I wasn't able to get it working without my fix.

  • Ref: https://stackoverflow.com/a/45571017

kleberbaum avatar Apr 30 '20 23:04 kleberbaum

When will this be merged?

EDIT: Actually I tested your proposed changes, and they don't seem to work. However adding the following seems to work:

# Construct a credentials objects from the key data and OAuth2 scope.
keyDict = json.loads(ga_key_content, strict=False)

Source: https://stackoverflow.com/a/29827074/11122248

diogosilva30 avatar Oct 02 '21 21:10 diogosilva30