Skip to content

fix: stackexchange api scraper crashes if question has no answers - #189

Open
Bnyro wants to merge 1 commit into
httpjamesm:mainfrom
Bnyro:fix-api-empty-answers
Open

fix: stackexchange api scraper crashes if question has no answers#189
Bnyro wants to merge 1 commit into
httpjamesm:mainfrom
Bnyro:fix-api-empty-answers

Conversation

@Bnyro

@Bnyro Bnyro commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

If there are no answers, we currently still make an API call to /answers/<ids>/comments, and because ids is empty, it's just /answers//comments, which gives us a HTTP 400 Bad Request and AnonOverflow crashes.

Example:

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