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: "Unexpected End of JSON input" error in events page. #236

Open
5 tasks done
pranavajith opened this issue Oct 12, 2024 · 4 comments
Open
5 tasks done

BUG: "Unexpected End of JSON input" error in events page. #236

pranavajith opened this issue Oct 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@pranavajith
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What went down?

image
Encountered this bug while scrolling events page at deployed site.
Upon checking, realised that this is mainly cause as the retrieved events data is null (no events). I wish to fix this by incorporating a check for the same within the frontend code.

Record

  • I agree to follow this project's Code of Conduct
  • I'm a gssoc-24-extd contributor
  • I want to work on this issue
  • I check the issue doesn't exist
@pranavajith pranavajith added the bug Something isn't working label Oct 12, 2024
Copy link
Contributor

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.
for more information join our discord https://discord.gg/Jh3bWQ7FRN

@pranavajith pranavajith changed the title BUG: BUG: "Unexpected End of JSON input" error in events page. Oct 12, 2024
@RamakrushnaBiswal
Copy link
Owner

@pranavajith actually i am not added the files in database that why it come

@pranavajith
Copy link
Author

Not sure, @RamakrushnaBiswal
This is what was observed upon running the vercel deployment.

What I can imagine is this:

image
image

Note the error being set.

@pranavajith
Copy link
Author

@RamakrushnaBiswal
Would you like me to fix this by adding a check as to if the json file is empty, do not render anything including the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants