fix: send a user agent when gamemap.py downloads #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/gamemap-user-agent"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
gamemap.pyfailing withHTTP Error 403when it fetches the live/items-index.json.Cause
Python-urllibUser-Agent (error 1010).curland browsers are fine. Found by running the freshly deployed tool the way a player would, without--index.Changes
static/tools/gamemap.py: onedownload()helper sends a descriptive User-Agent and turns any network failure into a one-line error that suggests--index FILE. Used for both the retoc download and the item index.Verification
curl -A Python-urllib/3.13-> 403,curl -A rsdclog-gamemap/1-> 200py_compileOK; full run in a cleanpython:3.13-slimcontainer with no--indexfetched the live index and mapped 1353 items and 37 quests (build 26670300); with networking off it printserror: couldn't download ... For the item index you can pass --index FILE.and no traceback