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

Infinite "Processing" State for Invalid URLs in CodeDrop #12

Closed
onkar69483 opened this issue Aug 9, 2024 · 2 comments · Fixed by #13
Closed

Infinite "Processing" State for Invalid URLs in CodeDrop #12

onkar69483 opened this issue Aug 9, 2024 · 2 comments · Fixed by #13
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed UI

Comments

@onkar69483
Copy link
Owner

onkar69483 commented Aug 9, 2024

When a user navigates to a URL that does not correspond to a valid paste ID on the CodeDrop website, the page gets stuck in an infinite "Processing" state. There is no error message displayed to the user, which leads to confusion and a poor user experience.

Steps to Reproduce:

  1. Visit the CodeDrop website.
  2. Enter an invalid or non-existent URL, such as https://codedrop.vercel.app/something.
  3. Observe that the page continuously shows the "Processing..." state without any error message or indication of the issue.

Expected Behavior:

  • An appropriate error message should be displayed to inform the user that the paste ID is invalid or does not exist.
  • The "Processing" state should not persist indefinitely.

Actual Behavior:

  • The "Processing" state remains active indefinitely for invalid URLs.
  • There is no error message or indication that the URL is invalid.

Relevant Code:

The issue might be related to error handling in the /src/routes/[id]/+page.svelte file. Review the fetch request and error handling logic to ensure that invalid responses are appropriately handled and displayed.

Proposed Solution:

  • Implement error handling for invalid paste IDs.
  • Display a user-friendly error message indicating the issue with the URL.
  • Ensure that the "Processing" state is exited once an error is encountered.

Screenshots:

processing

Additional Context:

This issue affects user experience and may lead to confusion when navigating to invalid URLs. Proper error handling and messaging will improve usability.

@onkar69483 onkar69483 added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers UI labels Aug 9, 2024
@onkar69483 onkar69483 pinned this issue Aug 9, 2024
@onkar69483 onkar69483 moved this to Backlog in CodeDrop Aug 9, 2024
@Aryanfour5
Copy link
Contributor

Aryanfour5 commented Oct 31, 2024

I can tackle the issue

@onkar69483
Copy link
Owner Author

Assigned @Aryanfour5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed UI
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants