-
Notifications
You must be signed in to change notification settings - Fork 55
PyPortal Titano Latest Library Issues #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
whats the exact code you're running? please put your code.py here so we can try it! |
Sure thing! The quickest example I have is the default code in the PyPortal_Bitcoin project I had mentioned above:
With the adafruit_pyportal.mpy from 20201013 and later I receive the NoneType error mentioned above. Any library before Oct 10th and I have no issues! This NoneType error seems to be consistent across multiple projects I've experimented with, as I just got my Titano, which leads me to believe it's a library related issue. Thanks! |
yeah we just did a massive amount of rework on the wifi libraries to improve memory usage and lil bugs are popping up (and getting squished) |
It appears the issue was we were handling JSON content type (application/json) correctly but not JSON-P content type (application/javascript). I have a PR in that fixes this. |
Hmmm... That PR seems to have resolved the issue with that particular example, but as I'm playing around with more examples I'm still seeing some issues related to what appears to be that same area of code in the PyPortal library. Here's another example with the Weather Station example here.
This time around I'm getting the error below:
Similar to before, if I use the pyportal library from Oct 10th i'm not experiencing any issues. It's as if the content type is not properly being parsed or identified? Let me know if you'd like me to open a different Issue for this. Thanks and Sorry for breaking things! |
@joelguth A new issue would be good. This error is new in requests 1.7.x because it doesn't cache the whole text of the response if the json version is requested. (In never loads the whole string at once which reduces peak memory usage.) |
@joelguth I see the issue you are referring to. It is completely different that the original issue you mentioned. To state it simply, if no JSON Path is provided it gets confused and errors. For any additional issues please open it as a new issue. For this one, I'll create one. I have a PR coming soon. |
There appears to be something that changed in the October 13th release of the CircuitPython library (adafruit-circuitpython-bundle-6.x-mpy-20201013) that breaks the PyPortal Titano. I have tried both 5.x and 6.x paths and the issue appears on both.
I consistently get the following error when experimenting with various projects:
For Example, on the PyPortal_Bitcoin project here i get:
If i download any CircuitPython release before the October 13th release I don't have any issues (i.e. October 10th).
Let me know if there's anything additional I can do to test, or any additional debugging I can enable to help track down the issue.
The text was updated successfully, but these errors were encountered: