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

Strange Rest requests (GET instead of POST) #13

Open
et-nik opened this issue Apr 9, 2020 · 0 comments
Open

Strange Rest requests (GET instead of POST) #13

et-nik opened this issue Apr 9, 2020 · 0 comments
Labels

Comments

@et-nik
Copy link
Member

et-nik commented Apr 9, 2020

Sometimes requests get confused for some reason. GET instead of POST request etc.

GameAP Daemon error logs:

2020-04-09 18:00:13.722 ERROR [30879] [Gameap::Rest::post@191] RestClient HTTP response code (POST): 405
2020-04-09 18:00:13.722 ERROR [30879] [Gameap::Rest::post@192] URL: gameap.host/gdaemon_api/ds_stats
2020-04-09 18:00:13.722 ERROR [30879] [Gameap::Rest::post@198] RestClient HTTP response: {
    "message": "The GET method is not supported for this route. Supported methods: POST."
}

Nginx logs:

1.3.3.7 - - [09/Apr/2020:18:00:13 +0300] "POST /gdaemon_api/ds_stats HTTP/1.1" 301 169 "-" "GameAP Daemon restclient-cpp/0.5.0" "-"
1.3.3.7 - - [09/Apr/2020:18:00:13 +0300] "GET /gdaemon_api/ds_stats HTTP/1.1" 405 104 "-" "GameAP Daemon restclient-cpp/0.5.0" "-"
1.3.3.7 - - [09/Apr/2020:18:00:13 +0300] "PATCH /gdaemon_api/servers HTTP/1.1" 301 194 "-" "GameAP Daemon restclient-cpp/0.5.0" "-"

May relate to https://github.com/gameap/daemon/issues/4

@et-nik et-nik added the bug label Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant