You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SonarrAPI.upd_manual_import method should use POST, according to the docs, and it should accept and return JsonArray, not JsonObject. This currently throws a 405 Method Not Allowed.
Steps To Reproduce
Spin up Sonarr container based on current latest (3.0.10.1567)
Have a file you wish to import manually in to sonarr
Use the get_manual_import and upd_manual_import methods to try and import the file
Expected behaviour
The method should use the POST HTTP method, so it will not error.
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/home/linuxdaemon/.cache/pypoetry/virtualenvs/indexer-Ucgmqaqj-py3.10/lib/python3.10/site-packages/pyarr/sonarr.py", line 751, in upd_manual_import
return self._put("manualimport", self.ver_uri, data=data)
File "/home/linuxdaemon/.cache/pypoetry/virtualenvs/indexer-Ucgmqaqj-py3.10/lib/python3.10/site-packages/pyarr/request_handler.py", line 160, in _put
response = _process_response(res)
File "/home/linuxdaemon/.cache/pypoetry/virtualenvs/indexer-Ucgmqaqj-py3.10/lib/python3.10/site-packages/pyarr/request_handler.py", line 246, in _process_response
raise PyarrMethodNotAllowed(f"The endpoint {res.url} is not allowed")
pyarr.exceptions.PyarrMethodNotAllowed: The endpoint http://docker-vm:8989/api/v3/manualimport is not allowed
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behaviour
The
SonarrAPI.upd_manual_import
method should usePOST
, according to the docs, and it should accept and return JsonArray, not JsonObject. This currently throws a 405 Method Not Allowed.Steps To Reproduce
Expected behaviour
The method should use the POST HTTP method, so it will not error.
Pyarr Version
5.2.0
Python Version
3.10.12
Example Code
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: