Thanks to visit codestin.com
Credit goes to github.com

Skip to content

API calls trailing slash #1215

@Tommatheussen

Description

@Tommatheussen

Expected behaviour:

All the API calls should use the same url structure, more specifically all should have a trailing slash in the request.

Actual behaviour:

Some API calls return a 404 error when used with a trailing slash.
Some calls can be seen from the UI, in the Swagger API docs there are some endpoints without trailing slashes as well, not all are tested but they do correspond to the ones used in the UI

Steps to reproduce:

  1. Enable API in the config
  2. Request one of the following endpoints:
    • /api/series/search/{ name }/ (GET)
    • /api/series/{ show_id }/ (DELETE, GET, PUT)
    • /api/series/{ show_id }/episodes/ (DELETE, GET)
    • /api/series/{ show_id }/episodes/{ ep_id }/ (DELETE, GET)
    • /api/series/{ show_id }/episodes/{ ep_id }/releases/ (DELETE, GET, PUT)

Config:

Basic API enabling config is enough to reproduce

Log:

There is no crash log or relevant log available, only the returned message from the server when trying to access some endpoints with the trailing slash

{
  "message": "The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again. You have requested this URI [/series/search/iZombie/] but did you mean /series/search/<string:name> ?"
}

Additional information:

  • Flexget Version: v2.0.37.dev
  • Python Version: 2.7.10
  • Installation method: Git
  • OS and version: Windows 10, 64-bit

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions