Hello,
I've been trying to set up Google Calendar Event Display (https://learn.adafruit.com/magtag-googl ... nt-display) on my MagTag. I've made it through all the steps and it successfully connects to the internet and to Google for authentication. However, I am stuck with the following. Grateful for any advice.
Traceback (most recent call last):
File "code.py", line 246, in <module>
File "code.py", line 84, in get_current_time
File "adafruit_portalbase/__init__.py", line 411, in get_local_time
File "adafruit_portalbase/network.py", line 231, in get_local_time
File "adafruit_portalbase/network.py", line 200, in get_strftime
File "adafruit_requests.py", line 615, in get
File "adafruit_requests.py", line 556, in request
File "adafruit_requests.py", line 423, in _get_socket
RuntimeError: Sending request failed
Code done running.
Difficulty with MagTag and Google Calendar
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- reallydontknowwhatimdoing
- Posts: 8
- Joined: Fri Jun 18, 2021 1:59 pm
- mikeysklar
- Posts: 14182
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Difficulty with MagTag and Google Calendar
I see your code is failing in get_current_time().
This is most likely a library issue. Is your MagTag up to date with the current CircuitPython and matching latest CP7.x libraries?
https://learn.adafruit.com/adafruit-mag ... ibraries-2
This is most likely a library issue. Is your MagTag up to date with the current CircuitPython and matching latest CP7.x libraries?
https://learn.adafruit.com/adafruit-mag ... cuitpythonIf you're having difficulty running this example, it could be because your MagTag CircuitPython firmware or library needs to be upgraded! Please be sure to follow https://learn.adafruit.com/adafruit-mag ... cuitpython to install the latest CircuitPython firmware and then also replace/update ALL the MagTag-specific libraries mentioned here https://learn.adafruit.com/adafruit-mag ... ibraries-2
https://learn.adafruit.com/adafruit-mag ... ibraries-2
- reallydontknowwhatimdoing
- Posts: 8
- Joined: Fri Jun 18, 2021 1:59 pm
Re: Difficulty with MagTag and Google Calendar
thanks for your reply -- I tried updating to the current CircuitPython and made sure the CP7.x libraries were the latest, and still got the following. Anything else I should be looking for?
Traceback (most recent call last):
File "code.py", line 246, in <module>
File "code.py", line 84, in get_current_time
File "adafruit_portalbase/__init__.py", line 411, in get_local_time
File "adafruit_portalbase/network.py", line 231, in get_local_time
File "adafruit_portalbase/network.py", line 200, in get_strftime
File "adafruit_requests.py", line 613, in get
File "adafruit_requests.py", line 554, in request
File "adafruit_requests.py", line 423, in _get_socket
RuntimeError: Sending request failed
Code done running.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 7.0.0 on 2021-09-20; Adafruit MagTag with ESP32S2
>>> [D
Traceback (most recent call last):
File "code.py", line 246, in <module>
File "code.py", line 84, in get_current_time
File "adafruit_portalbase/__init__.py", line 411, in get_local_time
File "adafruit_portalbase/network.py", line 231, in get_local_time
File "adafruit_portalbase/network.py", line 200, in get_strftime
File "adafruit_requests.py", line 613, in get
File "adafruit_requests.py", line 554, in request
File "adafruit_requests.py", line 423, in _get_socket
RuntimeError: Sending request failed
Code done running.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 7.0.0 on 2021-09-20; Adafruit MagTag with ESP32S2
>>> [D
- jonbloom_
- Posts: 1
- Joined: Mon Oct 25, 2021 5:33 pm
Re: Difficulty with MagTag and Google Calendar
I'm running into the same issue here with the exact same stack trace.
- adafruit2
- Posts: 22194
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Difficulty with MagTag and Google Calendar
did y'all put in adafruit io username/password? we use adafruitio for getting the current time/date SEPARATELY from google cal
- reallydontknowwhatimdoing
- Posts: 8
- Joined: Fri Jun 18, 2021 1:59 pm
Re: Difficulty with MagTag and Google Calendar
I did... and I ran the code that tests the connection to adafruit.io for the local time, and that works fine.
- MakerMelissa
- Posts: 379
- Joined: Wed Jun 05, 2013 2:10 am
Re: Difficulty with MagTag and Google Calendar
I was able to reproduce the issue as well. This only happens in CircuitPython 7.0.0 and not 6.3.0 and it seems to only have issues with subsequent calls after the first, which is why the simple tests passed. I have opened an issue here: https://github.com/adafruit/Adafruit_Ci ... /issues/83
- reallydontknowwhatimdoing
- Posts: 8
- Joined: Fri Jun 18, 2021 1:59 pm
Re: Difficulty with MagTag and Google Calendar
thank you - I went back to 6.3.0 and that solved the problem for me.
- retiredwizard
- Posts: 49
- Joined: Wed Sep 28, 2016 9:06 pm
Re: Difficulty with MagTag and Google Calendar
Well I guess I should check the forums before spending 5 hours on a problem :)
I was having this exact problem, I guess I'll go back down to 6.3. Thanks :D
I was having this exact problem, I guess I'll go back down to 6.3. Thanks :D
Please be positive and constructive with your questions and comments.