Skip to content

Explain posts that are not in the archive instead of a TypeError - #26

Merged
ihsoyCT merged 2 commits into
masterfrom
fix/missing-post
Oct 30, 2026
Merged

ihsoyCT merged 2 commits into
masterfrom
fix/missing-post

Conversation

@ihsoyCT

@ihsoyCT ihsoyCT commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Opening a thread whose post Arctic Shift or PullPush does not have (yet: new posts are archived with a delay, or never captured) failed with 'Cannot read properties of undefined (reading created_utc)', because the code read data[0] of an empty result.

Both backends now say the post is not in that archive (yet), suggest trying later or the other backend, and link to the post on Reddit. An empty comment tree is reported as 'No archived comments for this post' instead of an error; a failed comment request is still an error.

🤖 Generated with Claude Code

Opening a thread whose post Arctic Shift or PullPush does not have
(yet: new posts are archived with a delay, or never captured) failed
with 'Cannot read properties of undefined (reading created_utc)',
because the code read data[0] of an empty result.

Both backends now say the post is not in that archive (yet), suggest
trying later or the other backend, and link to the post on Reddit.
An empty comment tree is reported as 'No archived comments for this
post' instead of an error; a failed comment request is still an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ihsoyCT
ihsoyCT merged commit ccd51a6 into master Oct 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant