Skip to content

Conversation

@tannewt
Copy link
Member

@tannewt tannewt commented Jan 28, 2021

The response to http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard
has an extra space between Transfer-Encoding: and chunked so the
comparison fails.

Fixes #64

The response to http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard
has an extra space between Transfer-Encoding: and chunked so the
comparison fails.

Fixes adafruit#64
@tannewt tannewt requested a review from makermelissa January 28, 2021 03:22
@tannewt
Copy link
Member Author

tannewt commented Jan 28, 2021

@jedgarpark This should fix your demo. You can try this version of adafruit_requests.py to see.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the 2 spaces in Transfer-Encoding: chunked, which is more of a nitpick since it's just a test, it looks good to me. I didn't test.

@jedgarpark
Copy link

It works! Thanks @tannewt

@tannewt
Copy link
Member Author

tannewt commented Jan 28, 2021

Other than the 2 spaces in Transfer-Encoding: chunked, which is more of a nitpick since it's just a test, it looks good to me. I didn't test.

I'm not sure what you mean by this. The test is exactly for the 2 spaces. That's what the ESPN server is giving us and is being fixed.

@makermelissa
Copy link
Collaborator

Oh, then no worries. :)

@makermelissa
Copy link
Collaborator

Also, I was helping John and have tested now.

@tannewt tannewt merged commit f658b39 into adafruit:master Jan 28, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

json file over ~50KB cause parse error

3 participants