Code Monkey home page Code Monkey logo

Comments (28)

theotherp avatar theotherp commented on June 4, 2024

That was fixed two days ago. Are you sure you're running the latest version?

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

Yes running version v1.0.14

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

Can't really explain that. It should work... Wait for the next release.

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

1.0.15 is out, try that one.

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

Should be fixed now.

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

hi,
im now seeing a search by mylar yet it doesn't download the result. i dont know if i should send this to mylar.

2018-01-11 18:23:14 ERROR Unable to download nzb from link: https://127.0.0.1/nzbhydra/api?apikey=myapi&t=get&id=3 [http://127.0.0.1:5075/nzbhydra/getnzb/api/-6802808242181296776?apikey=myapi]
2018-01-11 18:23:14 INFO download-retrieved headers: {'content-length': '70', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'set-cookie': 'XSRF-TOKEN=fff4c5ca-6af0-4483-9360-f3464c66c283; Path=/nzbhydra', 'expires': '0', 'server': 'nginx/1.8.0', 'connection': 'keep-alive', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'date': 'Thu, 11 Jan 2018 18:23:14 GMT', 'content-type': 'application/xml;charset=UTF-8'}
2018-01-11 18:23:14 INFO Download URL: https://127.0.0.1/nzbhydra/api?apikey=myapi&t=get&id=3 [VerifySSL:False]

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

There's no port there

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

And ffs, post your debug infos like it says in the issue template.

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

apologise
here is the debug.
i use nginx to reverse proxy which works with all my other programs. all use http://
nzbhydra-debuginfos-2018-01-11-18-47.zip
12.0.0.1/nzbhydra, exepct for lazylibrarian which uses https://mydomain.com/nzbhydra

trying both on mylar cause the same error.

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

Here's how I interpret Mylar's log:

Mylar accesses Hydra at https://127.0.0.1/nzbhydra/... to search but finds a download that links to http://127.0.0.1:5075/nzbhydra/.... Note the difference in scheme. I guess that could cause problems.

Try setting the external URL to https://127.0.0.1/nzbhydra/ (in Hydra's main config section).

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

I'll probably disable the XSRF protection in the next version because it only causes problems and is rarely needed.

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

added the url but still getting the same error

from nzbhydra2.

fryfrog avatar fryfrog commented on June 4, 2024

I'm gonna suggest using your reverse proxy harder. I have mine setup so that sub.domain.com points at my external ip via real DNS. But inside my network, my router points sub.domain.com to the server's internal ip. That way, I can just use that everywhere. This could fix your issue because now you can point everything at https://sub.domain.com/nzbhydra2 (or whatever) and everything will just "work". Magically. Hopefully.

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

With lazylibrarian I have to use https://mydomain.com/nzbhydra which works fine. Trying this in Mylar comes up with the same errror as using http://127.0.0.1/nzbhydra (this is used by sonarr and radarr)

from nzbhydra2.

fryfrog avatar fryfrog commented on June 4, 2024

Does your mydomain.com work correctly internally? With routers and port forwards and stuff, it can be a little weird to get working. I assume it does, since LL is working. I've never added Hydra to either, let me try now and see what it does.

Edit: It turns out both Mylar and LL were using my old NZBHydra, so I've switched them to the new. I see a search query go through fine from LL to NZBHydra. The Mylar queries make it through too, but I don't have anything good to search for and nothing is found. :/

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

'LL works fine searches and results are sent to nzbget.
Mylar again searches but I get the error you see in my third post.
When I look into NZBHydra search history and run it again it pull results.

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

hi,
i updated to the latest version v1.0.16 and i’m still seeing the following error

2018-01-12 14:53:21 ERROR Unable to download nzb from link: http://127.0.0.1/nzbhydra/api?apikey=MYAPI&t=get&id=3 [http://127.0.0.1:5075/nzbhydra/getnzb/api/4065993004411482480?apikey=MYAPI]
2018-01-12 14:53:21 INFO download-retrieved headers: {'content-length': '70', 'x-xss-protection': '1; mode=block', 'x-content-type-options': 'nosniff', 'expires': '0', 'server': 'nginx/1.8.0', 'connection': 'keep-alive', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'date': 'Fri, 12 Jan 2018 14:53:21 GMT', 'content-type': 'application/xml;charset=UTF-8'}
2018-01-12 14:53:20 INFO Download URL: http://127.0.0.1/nzbhydra/api?apikey=MYAPI&t=get&id=3 [VerifySSL:False]

here are the debug logs
nzbhydra-debuginfos-2018-01-12-14-53.zip

I’ve made connect with @evilhero to see if he could assist from a Mylar point of view.

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

from nzbhydra2.

evilhero avatar evilhero commented on June 4, 2024

It does at the search level - the problem is that it's getting some kind of response from the 127.0.0.1/nzbhydra and is returning the retrieved headers response. So there's no error per-se from the response (there might be an error code, it doesn't trap that), but the response being retrieved doesn't contain the nzb.

Has nzbhydra2 changed the returning nzb url so that it doesn't have a 'searchresultid' anymore ? (that's what Mylar looks for to distinguish hydra from newznab queries in the past - it looks like the nzb trying to be retrieved above is just using the id field now)

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

@phairplay What you get in the browser when you call http://127.0.0.1:5075/nzbhydra/getnzb/api/4065993004411482480?apikey=MYAPI ?

@evilhero Why does Mylar need to distinguish between newznab and Hydra? No, there's not searchresultid parameter anymore. I was not aware there were any programs that handled Hydra differently (or needed to do so in the first place).

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

I can see errors in the log that indicate that some tool is trying to make an API call with the parameter t=7030 which doesn't make sense. Mylar seems to make queries using that category. Could that be related?

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

Ahhh... Sorry, I'm blind.

http://127.0.0.1/nzbhydra/api?apikey=MYAPI&t=get&id=3 is not a a valid NZB URL. The ID would need to look like the one in http://127.0.0.1:5075/nzbhydra/getnzb/api/4065993004411482480?apikey=MYAPI (in that case 4065993004411482480).

Why does Mylar use that ID?

from nzbhydra2.

evilhero avatar evilhero commented on June 4, 2024

It doesn't need to distinguish normally - but at some point (can't recall exactly when), the returning of the searchresultid was only occuring with nzbhydra, so I had to make an exception for the return call to be handled properly. Probably why it was trying to use the id of 3 instead of the other id.

If it's no longer needed, I can remove the searchresultid check and it should be able to retrieve it normally provided @phairplay can figure out his reverse proxy stuff.

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

Weird, it seems to work with all the other tools. If you need my support let me know.

from nzbhydra2.

evilhero avatar evilhero commented on June 4, 2024

No worries - this is all because I thought it'd be a good idea to allow for dynamic API replacement within the existing API download calls because of some edge case.

So Mylar basically just stores the id and then dynamically generates the url from the other info. Turns out to be more of a PITA than anything else - so now's the excuse for me to just remove that stuff entirely. I'll have this pushed out within the hour for @phairplay to try...

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

Hi guys,
Many thanks for taking the time to review this, I’ll report back ASAP

from nzbhydra2.

phairplay avatar phairplay commented on June 4, 2024

Winner winner chicken dinner.....
Thank you so much guys, I really appreciate it.

David

from nzbhydra2.

theotherp avatar theotherp commented on June 4, 2024

Great to hear.

from nzbhydra2.

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.