Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

MagTag Calendar Bad Request
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MagTag Calendar Bad Request

by jammininmypjs on Fri Apr 30, 2021 6:06 am

Hey, so I'm getting:
RuntimeError: ('Error:', {'error': {'code': 400, 'errors': [{'reason': 'badRequest', 'domain': 'global', 'message': 'Bad Request'}], 'message': 'Bad Request'}})

It was working before and I hadn't changed the request, calendar id, or any of the libraries. I did add a section to the code to handle "All Day" events, but that was also working and shouldn't affect this. I haven't regenerated any of my access tokens or anything either. I took out the calendar id as it's my email, but it is there on the MagTag.
Attachments
code.py
(8.02 KiB) Downloaded 2 times

jammininmypjs
 
Posts: 24
Joined: Wed Oct 21, 2020 10:42 pm

Re: MagTag Calendar Bad Request

by jammininmypjs on Sat May 01, 2021 10:33 am

It started working again so who knows

jammininmypjs
 
Posts: 24
Joined: Wed Oct 21, 2020 10:42 pm

Re: MagTag Calendar Bad Request

by franklin97355 on Sat May 01, 2021 11:18 am

Electronics are like that. They actively work to frustrate humans as a method of dominance. ;)

franklin97355
 
Posts: 21805
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: MagTag Calendar Bad Request

by dwetchells on Wed May 05, 2021 3:35 pm

jammininmypjs, I want to thank you for at least fixing the issue with all all day event crashing the program. I was figured it was something simple as a try/except but I am to new at circuitpython and hadn't really delved into the code. I hope this makes it to the finial learn guide.
thanks again

thinman.

dwetchells
 
Posts: 7
Joined: Sun Jul 28, 2019 4:30 pm

Please be positive and constructive with your questions and comments.