Giter Club home page Giter Club logo

Comments (2)

jmattheis avatar jmattheis commented on May 25, 2024

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.

d03j avatar d03j commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.