invernyx / smartcars-3-bugs

The bug tracker for the smartCARS 3 application
3 stars 0 forks source link

[BUG] - Logbook Sends POST request, instead of GET Request #254

Closed BossOfGames closed 1 year ago

BossOfGames commented 1 year ago

Describe the bug

According to the API Documentation, the /pireps/search and /data/airports are supposed to be accessed by a GET request.

Peeking into my server logs, I found that smartCARS was sending POST requests to those endpoints instead, which is invalid per the official API documentation.

How do you reproduce this bug?

Load the logbook and see the access.log file on a server.

Expected behavior

Logbook plugin should be using GET requests, per the documentation.

Screenshots

Screenshot 2023-06-06 at 21 45 58

Operating system

macOS 13.3.1

Community airline

Cardinal Horizon Dev

smartCARS Version

0.11.0

Plugins installed

chat, map, flight-center, flight-tracker, logbook

Additional context

No response

GenericNerd commented 1 year ago

Although this causes no issues in the default API, this will be resolved in the next version of the logbook.