1645256881: Zotero Connector: sh.reddit.com: .json failed with status code 400
[JavaScript Error: "HTTP GET https://sh.reddit.com/r/linux/comments/1g6t8wg/why_alpine_linux_is_my_new_favourite_distro/.json failed with status code 400"]
[JavaScript Error: "items is undefined
_saveToZotero@moz-extension://cd90827c-6099-4a48-b300-dcf8b3969894/itemSaver.js:118:7
" {file: "[object Object]"}]
Affected URLs include:
https://sh.reddit.com/r/linux/comments/1g6t8wg/why_alpine_linux_is_my_new_favourite_distro/
https://sh.reddit.com/r/freebsd/comments/1jp2q8d/freebsd_foundation_laptop_update_february_2025/
Connector version 5.0.157 with Firefox 136.0.3 (amd64) on FreeBSD 15.0-CURRENT. Multiple Firefox profiles affected.
The error does not occur if there's a redirect from the sh URL
You don't need to post error messages here or copy the contents of error reports to pastebin — that's what the Report ID is for. But we need an actual written description of whatever problem you're actually experiencing.
https://www.zotero.org/support/reporting_problems#provide_steps_to_reproduce
https://sh.reddit.com/r/linux/comments/1g6t8wg/why_alpine_linux_is_my_new_favourite_distro.json
Our Reddit translator adds .json to the URL, which in the www version works even when there's a trailing slash. It's possible in the sh version it no longer works if there's a slash before the .json (which would be reasonable).
Your Zotero should auto-update within a few minutes, or you can update translators manually from the Advanced pane of the Zotero settings.
At an affected URL, click the Zotero icon.
> Saving to My Library
>
> An error occurred whilst saving this item. …
https://s3.amazonaws.com/zotero.org/images/forums/u9523/3r4hc0ay1mf2hojx86l5.png
Redirections are somewhat mysterious. It may take some time for me to understand why they occur in some situations but not others.
I have at least two Firefox profiles that are redirect-free (for the purpose of this issue).
In a clean (refreshed) profile that I keep for general test purposes, I can not yet avoid the redirects. I'm experimenting with both my usual Reddit account (grahamperrin, co-moderator of the /r/freebsd sub) and with a very rarely-used non-moderator account (anoderay). Please be patient whilst I attempt to make a redirection-free environment reproducible.
No such button here:
https://s3.amazonaws.com/zotero.org/images/forums/u9523/te9zee9t5wv80x80glcm.png
Please, what am I missing?
https://s3.amazonaws.com/zotero.org/images/forums/u9523/uem3jq92lc2ntdpym07f.png
> does this URL give you an error, or does it give you JSON?
>
> https://sh.reddit.com/r/linux/comments/1g6t8wg/why_alpine_linux_is_my_new_favourite_distro.json
Neither. It redirects to:
https://sh.reddit.com/r/linux/comments/1g6t8wg/why_alpine_linux_is_my_new_favourite_distro/
https://s3.amazonaws.com/zotero.org/images/forums/u9523/23aegemgmfb1twxnm0qr.png
After removal:
1. reload the page
2. login and reject non-essential cookies
3. visit https://sh.reddit.com/r/freebsd/
For me, in a refreshed profile, simple attention to cookies seems to prevent the redirects.
I wonder whether this also fixes 2004959352 – compare what's below (comments in the snapshot) with the earlier screenshot at https://forums.zotero.org/discussion/comment/489425/#Comment_489425
https://s3.amazonaws.com/zotero.org/images/forums/u9523/zm6fbudmhkxcfh9ls2tb.png
A nit (minor inconsistency), titles:
* Reddit Post Snapshot before the fix
* Snapshot after the fix.