Giter Club home page Giter Club logo

Comments (7)

JagandeepBrar avatar JagandeepBrar commented on May 22, 2024

Hmm... In the logs I can see that it can successfully hit the host because you are getting HTTP status code 401.

[package:lunasea/logic/clients/nzbget/api.dart] [getStatus] [NZBGet: <POST> HTTP Status Code (401)] [Exception: null]

Status 401 means unauthorized, are you 100% sure that the username and password are correct? On that, do the username or password contain any special characters, such as symbols like @, !, #, etc.?

I was experiencing problems myself when using passwords with symbols, but I also was not able to login on the web GUI so I assumed it was a problem with NZBGet.

from lunasea.

theg00s3 avatar theg00s3 commented on May 22, 2024

This is what I get when NZBGet's authentication is disabled

from lunasea.

JagandeepBrar avatar JagandeepBrar commented on May 22, 2024

It still seems to be returning 401 Unauthorized continually. Do you have any authentication layer on top of NZBGet, maybe through NGINX or Apache?

from lunasea.

theg00s3 avatar theg00s3 commented on May 22, 2024

I do have an authentication layer with nginx, so my url is username:[email protected], which works for Sonarr, Radarr and Lidarr

from lunasea.

JagandeepBrar avatar JagandeepBrar commented on May 22, 2024

I think this problem may be out of my control, because I already tried preventing this by passing the username and password to NZBGet by setting the "authorization" header in base64 in the request, seen here:

https://github.com/JagandeepBrar/LunaSea/blob/73eaa245284b33b2509228f7dd84b1c6291521e7/lib/logic/clients/nzbget/api.dart#L23-L27

If you look at the NZBGet API, they also support passing username and password in that same format (username:password@host), and I feel like these must be interfering with each other. I can't think of any other reason that it seems to be failing authentication if you are confident that the username and password combo are correct.

Can you see if it works if you disable the NGINX authentication layer?

from lunasea.

theg00s3 avatar theg00s3 commented on May 22, 2024

Disabling nginx's basic auth works, but strangely I didn't need a workaround when using NZBUnity which unfortunately doesn't release its source code.

from lunasea.

theg00s3 avatar theg00s3 commented on May 22, 2024

I got it working. Instead of putting the nginx credentials in the url, I put them into the username and password box in LunaSea.

So my URL is website.com and then the nginx credentials are in the nzbget credential boxes.

from lunasea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.