mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1265] IOS Instant Notifications #892
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#892
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ledahosn on GitHub (Jan 25, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1265
❓ Question
Hello, i have a Problem - I get Rate Limited (also I dont know the exact rate limits) for pushing to IOS Apps - and I also do not find if I can pay ntfy.sh to allow for a higher Rate Limit.
I get this Log entry:
ntfy | 2025/01/25 14:05:49 WARN Unable to publish poll request, the upstream server https://ntfy.sh responded with HTTP 429 Too Many Requests; you may solve this by sending fewer daily messages, or by configuring upstream-access-token (assuming you have an account with higher rate limits) (message_body_size=93, message_event=message, ********
Can anybody tell me what a good solution is here for me?
@wunter8 commented on GitHub (Jan 25, 2025):
There are 2 rate limits: a burst limit and a daily message limit. Both return 429 errors.
Burst limit: if you sent a lot of messages close together (e.g., 60 within a few seconds), you could get a 429.
Daily message limit: you can send up to 250 messages/day using the free tier. You can pay to get higher limits, yes. See the ntfy homepage: https://ntfy.sh/#pricing
@ledahosn commented on GitHub (Jan 25, 2025):
@wunter8
After I have added my access token in my docker config like this:
- NTFY_UPSTREAM_BASE_URL=https://ntfy.sh - NTFY_UPSTREAM_ACCESS_TOKEN=xxxxxi still get:
Unable to publish poll request, the upstream server https://ntfy.sh/ responded with HTTP 429 Too Many Requests
@wunter8 commented on GitHub (Jan 25, 2025):
Check your limits by sending an authenticated request to https://ntfy.sh/v1/account
For example,
curl -u ':tk_abc...' https://ntfy.sh/v1/account(the colon before the access token is important)@ledahosn commented on GitHub (Jan 25, 2025):
At https://ntfy.sh/account i see my Usage is 0
C:\Users\xxx>curl -u ':tk_xxxxxxxxxxxxx' https://ntfy.sh/v1/account {"code":40101,"http":401,"error":"unauthorized","link":"https://ntfy.sh/docs/publish/#authentication"}I have created a Token in my Account with no expiry to test arround.
Also via my IP Based Authentication, I get this (which I can tell from I should be still able to get notifications?!)
ntfy:~/notify# curl ntfy.sh/v1/account {"username":"*","role":"anonymous","limits":{"basis":"ip","messages":17280,"messages_expiry_duration":43200,"emails":24,"calls":0,"reservations":0,"attachment_total_size":104857600,"attachment_file_size":15728640,"attachment_expiry_duration":10800,"attachment_bandwidth":524288000},"stats":{"messages":0,"messages_remaining":17280,"emails":0,"emails_remaining":24,"calls":0,"calls_remaining":0,"reservations":0,"reservations_remaining":0,"attachment_total_size":0,"attachment_total_size_remaining":104857600}}I mean I must be doing anything real stupid, because it doesn't make Sense for me and I am pretty sure ntfy doesn't have a real problem...
For additional Context here is my Setup:
ntfy.sh compose.yml file:
Public IP -> Reverse Proxy -> Docker Container
And currently I always get the 429 Status WARN in my Logs
@wunter8 commented on GitHub (Jan 25, 2025):
Any idea why the first curl command failed?
Do you have a server.yml in /etc/ntfy? Is it possible the upstream access token is being overwritten there? (I don't remember which of env variables and server.yml overrides the other)
Have you tried/considered the PWA for notifications on iOS? It has more features than the native app and has more reliable notifications