mateoradman / bazarr-bulk

Bazarr Bulk Actions CLI - Bulk sync your subtitles with ease
https://crates.io/crates/bazarr-bulk
MIT License
41 stars 1 forks source link

Windows/Linux Reqwest Error #1

Closed JuniperMS closed 8 months ago

JuniperMS commented 8 months ago

When attempting to use the script on Windows 10, I get this error message in command prompt and PowerShell stating, "Error: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 5030) }". I have the "bb" and "config.json" file in the Downloads directory. Below is an output from PowerShell.

PS C:\Users\User1\Downloads> ls Directory: C:\Users\User1\Downloads

Mode LastWriteTime Length Name


d----- 1/22/2024 7:08 AM bazarr-bulk_v.0.1.1_x86_64-pc-windows-gnu -a---- 1/22/2024 7:08 AM 5306389 bazarr-bulk_v.0.1.1_x86_64-pc-windows-gnu.zip -a---- 1/7/2024 2:02 PM 16944547 bb.exe -a---- 1/22/2024 7:25 AM 118 config.json

PS C:\Users\User1\Downloads> .\bb.exe --config .\config.json tv-shows sync Error: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 5030) }

Configuration File:

{ "host": "192.168.30.37", "protocol": "http", "port": "6767", "apiKey": "REMOVED" }

JuniperMS commented 8 months ago

The same error is present when attempted on Linux.

User1@linux:/opt$ sudo bb --config config.json tv-shows sync Error: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 5030) }

Configuration File:

{ "host": "192.168.30.37", "protocol": "http", "port": "6767", "apiKey": "REMOVED" }

mateoradman commented 8 months ago

Thank you for reporting this issue @JuniperMS. It seems that a struct is expecting a string but is getting a null value from bazarr's API. I will figure out which fields are nullable and which aren't from bazarr's source code and that will resolve the problem.

mateoradman commented 8 months ago

Hi @JuniperMS, what is the version of Bazarr you're running?

JuniperMS commented 8 months ago

Hi @mateoradman, I'm running Bazarr 1.4.0. I'd also like to mention that my Bazarr instance runs on Docker.