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

Can't fetch users with hyphen in username #43

Open
samstorment opened this issue Sep 4, 2023 · 0 comments
Open

Can't fetch users with hyphen in username #43

samstorment opened this issue Sep 4, 2023 · 0 comments

Comments

@samstorment
Copy link

If I try to fetch the user "grey-area" at https://api.hnpwa.com/v0/user/grey-area.json, I get an error message of "Cannot read property 'apply' of undefined".

This appears to be caused by the hyphen in the username "grey-area". The existence of a hyphen at all causes the error, even if the user doesn't exist. Other characters may be problematic too but I haven't found any more

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

No branches or pull requests

1 participant