[GH-ISSUE #892] Website Bug: "Application error" if api.github.com request failed #633

Open
opened 2026-05-07 00:26:04 +02:00 by BreizhHardware · 1 comment

Originally created by @davendu on GitHub (Sep 22, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/892

🐞 Describe the bug

When using IP shared with people, GET request to api.github.com can be rejected:

GET https://api.github.com/repos/binwiederhier/ntfy [HTTP/2 403  69ms]
{"message":"API rate limit exceeded for 43.132.98.115. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

Lead to an Application error of ntfy.sh:

Application error: a client-side exception has occurred (see the browser console for more information).

💻 Components impacted

ntfy website index page

💡 Screenshots and/or logs

Console log:

TypeError: can't access property "toString", n.stargazers_count is undefined [index-2471953fda56f166.js:1:21035](https://ntfy.sh/_next/static/chunks/pages/index-2471953fda56f166.js)
TypeError: can't access property "toLocaleString", n is undefined [framework-3b5a00d5d7e8d93b.js:9:69816](https://ntfy.sh/_next/static/chunks/framework-3b5a00d5d7e8d93b.js)
TypeError: can't access property "toLocaleString", n is undefined [main-a1df4e305e4c1ad8.js:1:9771](https://ntfy.sh/_next/static/chunks/main-a1df4e305e4c1ad8.js)

🔮 Additional context

N/A

Originally created by @davendu on GitHub (Sep 22, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/892 :lady_beetle: **Describe the bug** When using IP shared with people, GET request to `api.github.com` can be rejected: ``` GET https://api.github.com/repos/binwiederhier/ntfy [HTTP/2 403 69ms] {"message":"API rate limit exceeded for 43.132.98.115. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"} ``` Lead to an Application error of `ntfy.sh`: > Application error: a client-side exception has occurred (see the browser console for more information). :computer: **Components impacted** ntfy website index page :bulb: **Screenshots and/or logs** Console log: ``` TypeError: can't access property "toString", n.stargazers_count is undefined [index-2471953fda56f166.js:1:21035](https://ntfy.sh/_next/static/chunks/pages/index-2471953fda56f166.js) TypeError: can't access property "toLocaleString", n is undefined [framework-3b5a00d5d7e8d93b.js:9:69816](https://ntfy.sh/_next/static/chunks/framework-3b5a00d5d7e8d93b.js) TypeError: can't access property "toLocaleString", n is undefined [main-a1df4e305e4c1ad8.js:1:9771](https://ntfy.sh/_next/static/chunks/main-a1df4e305e4c1ad8.js) ``` :crystal_ball: **Additional context** N/A
Author
Owner

@binwiederhier commented on GitHub (Sep 22, 2023):

The API call for the star counter is cached for many hours, so this would be a very very rare case. Yet of course the website should not crash because of it.

<!-- gh-comment-id:1731312184 --> @binwiederhier commented on GitHub (Sep 22, 2023): The API call for the star counter is cached for many hours, so this would be a very very rare case. Yet of course the website should not crash because of it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#633
No description provided.