Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Encode reponse in UTF-8 to fix JSON parse error#25

Open
stefan-lz wants to merge 3 commits into
thomas-mcdonald:masterfrom
stefan-lz:master
Open

Encode reponse in UTF-8 to fix JSON parse error#25
stefan-lz wants to merge 3 commits into
thomas-mcdonald:masterfrom
stefan-lz:master

Conversation

@stefan-lz

Copy link
Copy Markdown

Response was encoded in ASCII, and the JSON parser could
not understand the UTF8's BOM in the response body.

Also:

  • have introduced using a ENV variable to store API key.
  • have filtered sensitive API key details from vcr.
  • have replayed vcr cassettes and updated tests (all passing using 2.1.1).

Cheers,

Response was encoded in ASCII, and the JSON parser could
not understand the UTF8's BOM

Also:
- have introduced using ENV variable to store API key.
- have filtered sensitive API key details from vcr.
- have replayed vcr cassettes and updated tests.
@stefan-lz

Copy link
Copy Markdown
Author

All tests are now passing on travis :)

You might want to run the vcr cassettes again yourself - incase you get different results.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant