Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspended and deleted users don't return undefined reliably on getUserByUsername #104

Open
devvit-help-bot bot opened this issue Oct 18, 2024 · 0 comments
Labels
bug synced This issue has been added to our internal tracker

Comments

@devvit-help-bot
Copy link

Details

Expected behaviour: When calling getUserByUsername on these users, I expect to get undefined back.

Actual behaviour: Some users (e.g. SomeRedditWanker, RedheadBanjoBabe) return undefined. Others (Driver_67, frankeh, heknarf, Tribyoon_) throw 404 errors.

Additional info

Discord message: _There's some weird issues with suspended or deleted accounts right now. With recent-ish changes, I'd expect the getUserByUsername call to return undefined for these users, but in most (but NOT all cases), these throw an error instead. Here's a gist with example code: https://gist.github.com/fsvreddit/1b6504b7095c9b6fceaeb5acfba04bb6

Two of the users tested (/u/SomeRedditWanker, /u/RedheadBanjoBabe, both suspended) returns undefined correctly. However the rest of them all throw 404 errors._

Message author: big.wheel

Discord link: https://discord.com/channels/1050224141732687912/1242689647478308895/1293860080533377055

@pl00h pl00h added bug synced This issue has been added to our internal tracker labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug synced This issue has been added to our internal tracker
Development

No branches or pull requests

1 participant