Excludarr manages your libraries in Radarr/Sonarr. It keeps track of your library and checks if your movies and series are also available on a configured streaming provider. It can exclude the movies and series that are available on a configured streaming provider. But it can also re-add movies and series if they are not streaming anymore.
MIT License
194
stars
13
forks
source link
"TypeError: byte indices must be integers or slices, not str" error when url in ./.excludarr.yml ends with a / #82
Hi, I solved my problem when writing this, but I think a little patch would have saved me from debugging all of this.
My problem was that in ./.excludarr.yml, I've writed the url of radarr with an / at the end...
Here is my original issue :
Hi, when I try to run excludarr in docker with the following command docker run -it --rm --env-file /volume1/docker/excludarr/excludarr_docker.env haijeploeg/excludarr:latest --debug radarr exclude -a delete
I have the following error TypeError: byte indices must be integers or slices, not str, complete logs at the end of this post.
When I try the same command but without docker (as root afteer installing excludarr with pip : excludarr --debug radarr exclude -a delete), I have the same error but I see that the movie variable contains :
b'<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/>'
(I've added a print to print the entire value of the variable "movie")
The I tried to use pipredream instead of my radarr server to see what request excludarr is sending to radarr, and I have this request :
So I tried to make the same request to my radarr with postman, and I have this result after 10 seconds :
[
{
"title": "Batman v Superman : L'Aube de la Justice",
"originalTitle": "Batman v Superman: Dawn of Justice",
"originalLanguage": {
"id": 1,
"name": "English"
},
"alternateTitles": [
{
"sourceType": "tmdb",
"movieMetadataId": 1,
"title": "Batman versus Superman: Dawn of Justice",
"sourceId": 0,
"votes": 0,
...
Do you know why I have this error ? It seems that the requests are not exactly the same between excludarr and postman, because I don't have the same result. An other difference is that excludar make the request from the same machine, when postman is from my computer.
I'm running everything (except postman) on a synology nas. Commands are via ssh, radarr is in a docker container.
Note : when I try the same command but with sonarr (also in a container), it works well and I get the list of tv shows to delete, no errors.
Hi, I solved my problem when writing this, but I think a little patch would have saved me from debugging all of this. My problem was that in
./.excludarr.yml
, I've writed the url of radarr with an/
at the end...Here is my original issue :
Hi, when I try to run excludarr in docker with the following command
docker run -it --rm --env-file /volume1/docker/excludarr/excludarr_docker.env haijeploeg/excludarr:latest --debug radarr exclude -a delete
I have the following error
TypeError: byte indices must be integers or slices, not str
, complete logs at the end of this post.When I try the same command but without docker (as root afteer installing excludarr with pip :
excludarr --debug radarr exclude -a delete
), I have the same error but I see that the movie variable contains :b'<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/>'
(I've added a print to print the entire value of the variable "movie")The I tried to use pipredream instead of my radarr server to see what request excludarr is sending to radarr, and I have this request :
So I tried to make the same request to my radarr with postman, and I have this result after 10 seconds :
Do you know why I have this error ? It seems that the requests are not exactly the same between excludarr and postman, because I don't have the same result. An other difference is that excludar make the request from the same machine, when postman is from my computer. I'm running everything (except postman) on a synology nas. Commands are via ssh, radarr is in a docker container.
Note : when I try the same command but with sonarr (also in a container), it works well and I get the list of tv shows to delete, no errors.
./.excludarr.yml :
excludarr_docker.env file for docker :
Complete log with docker :
Complete log without docker: