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

[BUG] Error Fetching User Info for Unparticipated Leetcode Users and incorect badge display #30

Closed
nidhi2026 opened this issue Oct 6, 2024 · 2 comments

Comments

@nidhi2026
Copy link

nidhi2026 commented Oct 6, 2024

What happened ?

When attempting to fetch user information for valid Leetcode users (e.g., inurownhands), an error occurs with the message:
Error fetching user info: TypeError: Cannot read properties of null (reading 'attendedContestsCount')

image

Despite the user being valid, the bot throws an error and fails to retrieve user info., it should rather give 0 as contest value.

image

When fetching user information like for fjzzq2002 from Leetcode, the bot displays the badge as [object Object] instead of showing the actual badge. This issue occurs for users who have valid badges, but the bot is not handling the badge display correctly in Discord.
img

@nidhi2026
Copy link
Author

@jinx-vi-0
I want to work on this bug. Can you assign it to me.
I am a GSSOC-ext contributor

@jinx-vi-0
Copy link
Owner

Already Done.

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

2 participants