Comments (2)
Cannot reproduce. Your "Forbidden" response is likely returned by your reverse proxy. Add your reverse proxy config to this ticket.
$ docker run -d --name gotify -p 8080:8080 -e GOTIFY_SERVER_PORT=8080 gotify/server:2.4.0
4b33e8cc29eafd66bd993b0b37e16adf437056736ec8c3079ea2116bc3ea6d85
$ curl "http://localhost:8080/message?token=A9BVqcGMzb8j8Dl" -F 'message=Right Token'
{"id":1,"appid":1,"message":"Right Token","title":"aeou","priority":0,"date":"2023-11-07T09:04:10.302250934Z"}%
$ curl "http://localhost:8080/message?token=oops" -F 'message=Wrong Token'
{"error":"Unauthorized","errorCode":401,"errorDescription":"you need to provide a valid access token or user credentials to access this api"}%
$ docker logs gotify
2023-11-07T09:04:10Z | 200 | 7.923651ms | 172.17.0.1 | POST "/message?token=[masked]"
2023-11-07T09:04:18Z | 401 | 264.748µs | 172.17.0.1 | POST "/message?token=[masked]"
Error #01: you need to provide a valid access token or user credentials to access this api
from server.
my bad! due to a quirk in my network config traffic from the machine I was using to test the API sometimes appears as coming from the LAN and others from the WAN. The 403/forbidden was indeed my reverse proxy blocking wan connections. Now I get the exact same as you. Thank you for checking, the prompt reply and apologies for wasting your time.
from server.
Related Issues (20)
- Clickable notification title when click.url is set HOT 1
- Removal of disabled flag on Refresh button
- Can't get Apache 2.4.38 proxy with sub path to upgrade to websocket HOT 13
- Cannot login behind Traefik, but ip:port works fine HOT 4
- Unable to Login with default credentials HOT 4
- Assistance with json format for multiple message extras HOT 3
- Accept priority as string HOT 7
- Is it Possible to Only Use a URL to Forward Messages? HOT 2
- 401 when logging in via Caddy, but ip:port works HOT 8
- Use gotify as 2FA with messages extras HOT 1
- Configure app graylog to use gotify for notifcations HOT 5
- Filter by Message HOT 1
- Websocket stream per application HOT 1
- Support for X-Forwarded-Prefix HOT 2
- Android App Notification: Could not connect / Bad Request HOT 7
- curl syntax to verify application token HOT 3
- Plugins messages not displayed upon refresh of the message page, nor can they be deleted HOT 4
- Copy to clipboard not working with http HOT 1
- how about a new release? HOT 2
- [Enhancement]: Logging to show login attempts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.