Project Information
- Repository: https://github.com/knacksteem/knacksteem-api/
- Project Name: KnackSteem
Expected behavior
Not having any contributions yet on the site, should not cause any errors.
Actual behavior
This api call:
https://api.knacksteem.org/v1/stats/users?username=helo
returns: {"status":404,"message":"There are not results matching your query."}
while a user with posts like:
https://api.knacksteem.org/v1/stats/users?username=knowledges
gets: a much nicer status 202: {"status":200,"results":[{"roles":["supervisor","moderator","contributor"],"isBanned":false,"bannedUntil":null,"banReason":null,"bannedBy":null,"username":"knowledges","createdAt":"1532936994"}],"count":1}
This bug causes misleading error messages to the font end and to the console.
How to reproduce
Access the front end while logged in or the API with any STEEM user that has not contributed to KnackSteem yet.
- Browser/App version: Chrome
- Operating system: Windows/Linux