Skip to content

Strange Rest requests (GET instead of POST) #13

Description

@et-nik

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 gameap/daemon#4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions