-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
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