Hi,
Since the 6 nov 2017, i have error for notify and refresh kodi library, i have the error "error IOException: Server returned HTTP response code: 401".
My configuration is :
filebot on synology NAS: FileBot 4.7.9 (r4984) / Java(TM) SE Runtime Environment 1.8.0_91 / Linux 3.10.102 (amd64)
Kodi 17.5 on raspbian Stretch.
I have seen that scripts/lib/htpc.groovy have been modify around the date of my problem.
this is the log:
GET: http://kodiuser:[email protected]. ... %22%3A1%7D
IOException: Server returned HTTP response code: 401 for URL: http://kodiuser:[email protected]. ... %22%3A1%7D
If i copy the url and past into a browser the notification is done to kodi, but the refresh not occured.
I have found this topic viewtopic.php?t=4472, and add authentication but i have the same error. Before the problem i was have authentication on kodi, but not on filebot and it was working great.
I'm a little bit lost because around this date i have updated kodi to 17.4 to 17.5, could you clear something up.
At any rate you make fantastic work.
Regards
Vinoo
AMC script Kodi notify: "error IOException: Server returned HTTP response code: 401"
Re: AMC script Kodi notfy: "error IOException: Server returned HTTP response code: 401"
There's a recent thread about this exact issue. It's already been fixed. You can use -script dev:amc if you want to use the latest revision of the amc script.
@see viewtopic.php?f=4&t=5446
@see viewtopic.php?f=4&t=5446
Re: AMC script Kodi notify: "error IOException: Server returned HTTP response code: 401"
hi,
I have test with the dev script but the issue is the same:
Notify Kodi: [host:kodiuser:[email protected], port:8080]
POST: http://kodiuser:[email protected]:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"FileBot finished processing 5 files","message":"\u2022 Alien Covenant 2017 1080p VFF EN X264 AC3-mHDgz\n\u2022 Faites Entrer L'accuse - S09E09 - Romain Dupuy - Les infirmi\u00e8res de Pau\n\u2022 Faites Entrer L'accus\u00e9 - S10E15 - Valerie Subra - La mort sur rendez vous\n\u2022 Faites entrer l'accus\u00e9 - S00E03\n\u2022 Faites entrer l'accus\u00e9 - S00E04\n\u2022 Faites entrer l'accus\u00e9 - S00E05\n\u2022 Game.Of.Thrones.S04.FRENCH.Bluray.720p.HDLight.x264.AAC-Shundee\n\u2022 Kingsman Kingsman The Secret Service (2014) MULTi-VF2 [1080p] BluRay x264-PopHD\n\u2022 Moi moche et mechant 3 2017 1080p FR EN X264 AC3-mHDgz","image":"https://app.filebot.net/icon.png"},"id":1}
IOException: Server returned HTTP response code: 401 for URL: http://kodiuser:[email protected]:8080/jsonrpc
otherwise i don't see the method VideoLibrary.Scan in the POST request
I have test with the dev script but the issue is the same:
Notify Kodi: [host:kodiuser:[email protected], port:8080]
POST: http://kodiuser:[email protected]:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"FileBot finished processing 5 files","message":"\u2022 Alien Covenant 2017 1080p VFF EN X264 AC3-mHDgz\n\u2022 Faites Entrer L'accuse - S09E09 - Romain Dupuy - Les infirmi\u00e8res de Pau\n\u2022 Faites Entrer L'accus\u00e9 - S10E15 - Valerie Subra - La mort sur rendez vous\n\u2022 Faites entrer l'accus\u00e9 - S00E03\n\u2022 Faites entrer l'accus\u00e9 - S00E04\n\u2022 Faites entrer l'accus\u00e9 - S00E05\n\u2022 Game.Of.Thrones.S04.FRENCH.Bluray.720p.HDLight.x264.AAC-Shundee\n\u2022 Kingsman Kingsman The Secret Service (2014) MULTi-VF2 [1080p] BluRay x264-PopHD\n\u2022 Moi moche et mechant 3 2017 1080p FR EN X264 AC3-mHDgz","image":"https://app.filebot.net/icon.png"},"id":1}
IOException: Server returned HTTP response code: 401 for URL: http://kodiuser:[email protected]:8080/jsonrpc
otherwise i don't see the method VideoLibrary.Scan in the POST request
Re: AMC script Kodi notify: "error IOException: Server returned HTTP response code: 401"
i have try to make the curl request from the same filebot server:
curl -X POST -d @/tmp/test_kodi.json -H "Content-Type: application/json" http://kodiuser:[email protected]:8080/jsonrpc
where /tmp/test_kodi.json is the json content of the output of filebot and its working, however librairy scan not occured.
curl -X POST -d @/tmp/test_kodi.json -H "Content-Type: application/json" http://kodiuser:[email protected]:8080/jsonrpc
where /tmp/test_kodi.json is the json content of the output of filebot and its working, however librairy scan not occured.
Re: AMC script Kodi notify: "error IOException: Server returned HTTP response code: 401"
hi,
I realize that there is two time the "{" symbol in the json data:
{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{" .... },"id":1}
Don't know if it's the problem because with curl it's work.
I realize that there is two time the "{" symbol in the json data:
{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{" .... },"id":1}
Don't know if it's the problem because with curl it's work.