adafruit / adafruit/Adafruit_Learning_System_Guides

MagTag Google Sheets URL redirect fails

Open
#2,116 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.1k
Forks
806
Avg merge
16h 52m
Merged PRs (30d)
11

Description

There's an issue in
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/MagTag_Google_Sheets/weekly_planner/code.py
that's been transferred to Requests:
https://github.com/adafruit/Adafruit_CircuitPython_Requests/issues/103

I believe the issue is due to a required redirect to access the spreadsheet. This must have behaved differently in the past, but now the redirect is a `307` temporary redirect to a different host (subdomain.domain). Requests I believe only handles redirects within the same host.

While waiting for a Requests change, maybe there's an alternate way to serve the spreadsheet that won't encounter the issue, and gets the guide working again.

_Update: after more testing, turns out redirects to other domains are handled fine. The error arises from some other cause (unknown) - see the issue linked for more discussion._

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with MagTag_Google_Sheets/weekly_planner/code.py and read the discussion in Adafruit_CircuitPython_Requests issue 103, since the reported redirect cause was later ruled out. Reproduce the spreadsheet request and compare its failure with the linked issue; done means the guide serves the spreadsheet successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.