JagandeepBrar / lunasea

Self-hosted software controller built using Flutter
https://www.lunasea.app
GNU General Public License v3.0
1.31k stars 64 forks source link

[Bug] Error when trying to search for something in -arrs #308

Closed hbooo closed 3 years ago

hbooo commented 3 years ago

Describe the Bug I have an error each time I try to search for a movie/tv show/music

To Reproduce Go to radarr, sonarr or lidarr in LunaSea and try to search for all missing or for a specific item

Expected Behaviour Search should work without an error

Screenshots image

Versions LunaSea: 4.2.1 (40201001) Sonarr: 3.0.4.1126-ls60 by linuxserver.io Radarr: 3.0.2.4552-ls93 by linuxserver.io Lidarr: 0.7.2.1878

Additional context Log: image

JagandeepBrar commented 3 years ago

Can you take a screenshot of the exception?

hbooo commented 3 years ago

Screenshot_20210210-235507 There you go

JagandeepBrar commented 3 years ago

Error 301 is an authentication error (unauthorized), how are you currently authenticating against the -arrs? Are you using an API key only, or are you using basic auth with a reverse proxy, etc.?

hbooo commented 3 years ago

I'm using a reverse proxy and an api Key :

http://mydns/**arr

I'm able to navigate to the arr module and see items but when i try an interactive search or all missing It doesn't work

JagandeepBrar commented 3 years ago

Is your reverse proxy possibly blocking requests that are not GET requests? Any "actions" will execute POST, PUT, or DELETE HTTP requests.

I personally, as well as many users, use a reverse proxy with the -arrs and have no issues with executing requests through it.

hbooo commented 3 years ago

Just recheck my configuration and try with https ://mydns/arr instead of htpp://mydns/arr

And now it works, sorry for that.