🎁📬❄️📦 Holiday Shipping Deadlines are approaching! International customers and domestic ground - get your orders in 12/9/2020 📦❄️📬🎁
0

recv_into Error
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

recv_into Error

by dbulmer on Thu Oct 22, 2020 9:01 am

I have been trying to use John Park's scoreboard tutorial for a week now with out success. Now there is an official tutorial at https://learn.adafruit.com/matrix-portal-scoreboard Still does not work as show in the tutorial.

The only difference in my code from the tutorial code is that I have my wifi and Adafruit IO info in the secrets.py file.

I keep receiving the following error and it keeps repeating over and over. The code seems to run for a while but then crashes.

-<Error Quote>-
Socket missing recv_into. Using more memory to be compatible
Team Red is now Team Dar
text index None
An error occured, retrying! 1 - Failed to send 3 bytes (sent 0)
Socket missing recv_into. Using more memory to be compatible
-<End Quote>-

Is there any update to correct this issue. I have gone to Discord and not received any useful assitance.

Hardware:
Adafruit Metro M4 Express AirLift (WiFi) - Lite
Adafruit RGB Matrix Shield for Arduino

Software:
CircuitPython 6.0.0-rc.0
adafruit-circuitpython-bundle-6.x-mpy-20201022

dbulmer
 
Posts: 10
Joined: Fri Mar 29, 2019 4:04 pm

Re: recv_into Error

by brubell on Fri Oct 23, 2020 9:56 am

Could you try removing the Requests library folder from your CIRCUITPY device's lib folder and trying an older version of the Requests library:
https://github.com/adafruit/Adafruit_Ci ... /tag/1.6.0

brubell
 
Posts: 1116
Joined: Fri Jul 17, 2015 10:33 pm

Re: recv_into Error

by hsimons on Sat Oct 24, 2020 2:44 pm

brubell's suggestion solved my issue... I had to revert to version 1.6.0 of the requests library before I could interact with IO.

I am using the same board as the OP and library bundle version but the CircuityPython 5.3.1 variant.

hsimons
 
Posts: 5
Joined: Thu May 29, 2014 11:20 pm

Re: recv_into Error

by JustTheDazz on Sun Oct 25, 2020 4:45 pm

I've spent the day trying to resolve a similar issue using this guide - https://learn.adafruit.com/iot-pyportal ... n/overview .
I am using a pyportal with the most recent firmware & libraries installed . Everything was so slow and then would error out and stop working. Installing the older requests library as brubell's mentioned solved my issue.

With all the guides i've seen on adafruit, I am hoping someone has told people about this? I just found this post by accident myself.

JustTheDazz
 
Posts: 41
Joined: Sat Mar 12, 2011 12:53 pm

Please be positive and constructive with your questions and comments.