Closed mouledla closed 2 years ago
Hi, I think it could be a problem with your server_url or api_key configuration. I added more helpful messages printed in the console for easier troubleshooting. Just download the latest version and try again :)
Thanks for your response. I tried again with the latest version. But still no success.
This is the logfile from radarr:
maybe you will have an euraka moment, cuz i cant
What version of Radarr are you using? The script was tested with V2 and v3
On Mon, Sep 12, 2022, 5:58 PM mouledla @.***> wrote:
Thanks for your response. I tried again with the latest version. But still no success. [image: image] https://user-images.githubusercontent.com/73481608/189784160-a9efdfea-0dfd-4e39-89eb-0f242f59ec67.png
This is the logfile from radarr: [image: image] https://user-images.githubusercontent.com/73481608/189784266-160df664-f3cc-48ab-a3b3-5c16fe6cb639.png
maybe you will have an euraka moment, cuz i cant
— Reply to this email directly, view it on GitHub https://github.com/avraham/hass_radarr_sonarr_search_by_voice/issues/21#issuecomment-1244759773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAXBZYNY6OFB5GRMH25J3V57GRZANCNFSM6AAAAAAQK344GY . You are receiving this because you commented.Message ID: @.*** com>
hmm that could be it indeed. I will test it with a seperate docker container but this time V3
Unfortunately also with 3.0 and 3.2 does not work. Very weird. I am 100% accurate regarding the radarr url, port and api key. So i dont think it is that. If I look at Radarr logs, i see the following:
Why does it say "(removed)" at the api key part?
For some reason, the test works for sonarr. but the radarr part does not work.
I am using V3 now, and it kinda works. It just cant add a movie
Ok. Let me investigate what could be the problem
On Tue, Sep 13, 2022, 7:22 AM mouledla @.***> wrote:
Reopened #21 https://github.com/avraham/hass_radarr_sonarr_search_by_voice/issues/21.
— Reply to this email directly, view it on GitHub https://github.com/avraham/hass_radarr_sonarr_search_by_voice/issues/21#event-7377197516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAXBYXK2VQIXIXYNFKMILV6CEZDANCNFSM6AAAAAAQK344GY . You are receiving this because you commented.Message ID: <avraham/hass_radarr_sonarr_search_by_voice/issue/21/issue_event/7377197516 @github.com>
I added more debug messages in the latest version.
Now you need to execute it with the debug argument.
python3 ./hass_radarr_search_by_voice.py "the avengers" "0" --debug
It also prints out the http request made to the radarr server ready in curl format, so you can test it directly with curl in the command line.
As far as I can tell, the problem is in the http request to add the movie, maybe the rootFolderPath is not what radarr expects.
Thanx for adding the debug part. This is what i get now. error statuscode 415
A quick google search gives me the following:
The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. (maybe something wrong with the JSON payload?)
The format problem might be due to the request's indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly.
@avraham
I followed these instructions: https://stackoverflow.com/questions/52216808/python-request-gives-415-error-while-post-data
And now it works.
I am no programming expert so please tell me if this is not the way of working ;) but I have added these lines:
and with the post call where you add the movie, i have added the header parameters:
Without the debugging part you have added i wouldnt be able to find this, so thank you!
I'm glad you found a solution. I believe some other people had the same issue in the past but I wasn't able to reproduce it. I'll add your fix ti the code. :)
On Wed, Sep 14, 2022, 7:03 AM mouledla @.***> wrote:
@avraham https://github.com/avraham
I followed these instructions: https://stackoverflow.com/questions/52216808/python-request-gives-415-error-while-post-data
And now it works. [image: image] https://user-images.githubusercontent.com/73481608/190175013-3d6521a0-2975-4e1d-bf41-42db7e3b40a7.png
I am no programming expert so please tell me if this is not the way of working ;) but I have added these lines:
[image: image] https://user-images.githubusercontent.com/73481608/190175327-60aa1617-6445-45e3-a6f0-f92c07199b64.png
and with the post call where you add the movie, i have added the header parameters: [image: image] https://user-images.githubusercontent.com/73481608/190175691-ba3b417a-4bfb-42be-babc-5629008404ce.png
Without the debugging part you have added i wouldnt be able to find this, so thank you!
— Reply to this email directly, view it on GitHub https://github.com/avraham/hass_radarr_sonarr_search_by_voice/issues/21#issuecomment-1246813964, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAXB44X4HJGRN7IQUTU7TV6HLMHANCNFSM6AAAAAAQK344GY . You are receiving this because you were mentioned.Message ID: @.*** com>
I dont know if this project is still getting maintained, but i will still try and ask.
So i have added all the config lines correctly, but it seems that the script doesnt do anything. You can see that it doesnt do anything in the picture below. Also no new movie added in radarr.
This is my config file:
Maybe someone could help me and get this to work, cuz i like it very much.