website icon indicating copy to clipboard operation
website copied to clipboard

πŸ› Bug: Performance and API Errors on JSON Schema Website: Slow Loading and 404 API Response

Open jagpreetrahi opened this issue 1 year ago β€’ 31 comments

Describe the bug

. I wanted to bring to your attention some issues I encountered while using the JSON Schema website.

Slow Page Loading: The website takes a considerable amount of time to load, which negatively impacts the user experience.

API and Model Stream Errors: I noticed that the API and model stream are returning a "404 Not Found" error, preventing the system from successfully fetching data.

I would appreciate it if you could investigate these issues, as they are affecting the usability of the platform. Please let me know if you require any further details from my side.

Steps To Reproduce

Visit the JSON Schema Website: Open your web browser and go to the JSON Schema website.

Click on a Link and other Functionality : Click on any internal link on the page (e.g., navigation links or buttons).

Observe the Delay: Note how long it takes for the linked page or content to load. It may take an unusually long time to respond.

Check for API or Model Stream Errors: Open the browser’s developer tools (F12) and go to the "Network" tab. After clicking the link, check for failed API calls, particularly "404 Not Found" errors.

Expected Behavior

Fast Page Loading: The website should load quickly and efficiently, providing a smooth user experience without long delays.

Successful API Calls: The API and model stream should return valid responses (e.g., HTTP 200) when requested, allowing data to be fetched and displayed without errors.

Screenshots

[](Screenshot (71))

![Screenshot (69)](https://github.com/user-attachments/assets/a06f3226-4383 Screenshot (70) -4305-971e-86c0d7783726)

Screenshot (69)

Device Information [optional]

- OS:Window
- Browser: Chrome
- version:

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

Yes

jagpreetrahi avatar Sep 21 '24 16:09 jagpreetrahi

Welcome to the JSON Schema Community. We are so excited you are here! Thanks a lot for reporting your first issue!! πŸŽ‰πŸŽ‰ Please make sure to take a look at our contributors guide if you plan on opening a pull request. For more details, check out the README.md file.

github-actions[bot] avatar Sep 21 '24 16:09 github-actions[bot]

Hey @jagpreetrahi, about the Slow Page Loading issue, I revisited the website to confirm and did not face any such problem. Can you recheck if it was not an Internet Connectivity issue?

iamAyushChamoli avatar Sep 22 '24 05:09 iamAyushChamoli

Hii @iamAyushChamoli I hope you are doing well , I am new here , I wanna contribute here . For that I was exploring the website and got an api call issue also . Now I wanna work on any issue , so can u help me how I can start and if you are currently working on any issue , can I be a part of it .

jagpreetrahi avatar Sep 22 '24 06:09 jagpreetrahi

@jagpreetrahi to start contributing you can refer to Contributing Guidlines. If you encounter an issue that you believe you can solve, you can create a pull request without @ the maintainers. Additionally, please make sure that the bugs and issues that you encounter are not a system/Internet Connectivity issue. Thanks! (PS: I'm NOT a maintainer of this repository, these are just some guidelines from one contributor to another)

iamAyushChamoli avatar Sep 23 '24 07:09 iamAyushChamoli

Ok I work on it

jagpreetrahi avatar Sep 23 '24 07:09 jagpreetrahi

Hi everyone. @jagpreetrahi thanks a lot for opening this issue. Please feel free to submit a PR to improve the website performance. Thanks

benjagm avatar Sep 23 '24 09:09 benjagm

hey, i wamt to work on this issue @benjagm , if it's stil open

29deepanshutyagi avatar Oct 01 '24 11:10 29deepanshutyagi

Hii @29deepanshutyagi , I hope you are doing well , I just want to tell , i am working on this issue , and if u wanna be a part of this with me then i will tell u

jagpreetrahi avatar Oct 01 '24 12:10 jagpreetrahi

Currently I am exploring official website for understand features

jagpreetrahi avatar Oct 01 '24 12:10 jagpreetrahi

Hii @29deepanshutyagi , I hope you are doing well , I just want to tell , i am working on this issue , and if u wanna be a part of this with me then i will tell u

sure

29deepanshutyagi avatar Oct 01 '24 12:10 29deepanshutyagi

Thank you @jagpreetrahi for opening the issue, I've labeled it for hacktoberfest looking forward to have you PR : )

DhairyaMajmudar avatar Oct 02 '24 17:10 DhairyaMajmudar

@jagpreetrahi any luck on this ?

DhairyaMajmudar avatar Oct 15 '24 06:10 DhairyaMajmudar

Hii @DhairyaMajmudar , currently my exam are going on so I am not working on this issue. If you want to close this issue from my side then I can do this

jagpreetrahi avatar Oct 15 '24 06:10 jagpreetrahi

Hii @DhairyaMajmudar , currently my exam are going on so I am not working on this issue. If you want to close this issue from my side then I can do this

No need to close the issue, let's make this open for other contributors, feel free to pick an another issue.

DhairyaMajmudar avatar Oct 15 '24 10:10 DhairyaMajmudar

@DhairyaMajmudar May I work on this issue ?

techmannih avatar Oct 22 '24 08:10 techmannih

@DhairyaMajmudar May I work on this issue ?

Sure, assigned the issue

DhairyaMajmudar avatar Oct 22 '24 09:10 DhairyaMajmudar

@DhairyaMajmudar May I work on this issue ?

Sure, assigned the issue

thank you @DhairyaMajmudar

techmannih avatar Oct 22 '24 09:10 techmannih

@DhairyaMajmudar about the Slow Page Loading issue, I revisited the website to confirm and did not face any such problem. I have also checked network tab, there is only one issue for "404 Not Found" I think need to fix it Image

techmannih avatar Oct 22 '24 09:10 techmannih

@DhairyaMajmudar please help me for this issue, I am not facing any error, can you explain?

techmannih avatar Oct 24 '24 09:10 techmannih

Hii @techmannih , how's going on folk , Is there any issue you are facing? , how I can help you

jagpreetrahi avatar Oct 26 '24 15:10 jagpreetrahi

hi @jagpreetrahi about the Slow Page Loading issue, I revisited the website to confirm and did not face any such problem. I have also checked network tab

techmannih avatar Oct 27 '24 10:10 techmannih

So , as I understand , you are saying that everything is work correctly now , and there is not page loading issue at all.

jagpreetrahi avatar Oct 27 '24 11:10 jagpreetrahi

@jagpreetrahi Yes, exactly! Everything is working correctly now, and there is no page loading issues at all

techmannih avatar Oct 28 '24 07:10 techmannih

@techmannih can you pls. mention the browser where you are testing the website. And also if possible once try to test in chrome browser as @jagpreetrahi stated he is using chrome browser in issue description

DhairyaMajmudar avatar Oct 28 '24 07:10 DhairyaMajmudar

@DhairyaMajmudar sure, I’m currently testing the website on Microsoft Edge, but I will also check it in Chrome as @jagpreetrahi mentioned. I appreciate your input

techmannih avatar Oct 28 '24 08:10 techmannih

It's true that some 404 errors occur, here are some of the common errors

  • https://json-schema.org/_next/data/vd0jjF7U0TQX91bSWa25-/slack.json?slug=slack (404)

Opening some of the drafts fail to fetch some requests, for example:

  • https://json-schema.org/_next/data/vd0jjF7U0TQX91bSWa25-/draft/2019-09/draft-handrews-json-schema-02.html.json
  • https://json-schema.org/_next/data/vd0jjF7U0TQX91bSWa25-/draft/2019-09/schema.json There's a .html.json that doesn't exist and a schema.json that appears to fail on most draft pages

but overall this does seem to be a real issue, with some mismatched links trying to fetch data from /_next/

IyaadArshad avatar Oct 28 '24 08:10 IyaadArshad

The issue lies with the following URL returning a 404 error: https://json-schema.org/_next/data/vd0jjF7U0TQX91bSWa25-/slack.json?slug=slack

Root Causes:

  • Next.js data fetching route doesn't exist
  • HTML-based redirects instead of proper HTTP redirects
  • Split infrastructure causing routing issues
  • Improper caching implementation

Image

MadhavDhatrak avatar Jan 14 '25 17:01 MadhavDhatrak

Hi @benjagm @DhairyaMajmudar

I’d love to work on this issue Could you please assign it to me?

MadhavDhatrak avatar Jan 14 '25 18:01 MadhavDhatrak

Assigned the issue to you @MadhavDhatrak

DhairyaMajmudar avatar Jan 14 '25 18:01 DhairyaMajmudar

This issue is again available.

benjagm avatar Mar 16 '25 17:03 benjagm

Hii @benjagm , I'd like to work on, can you please assign me this issue

jagpreetrahi avatar Mar 17 '25 11:03 jagpreetrahi