Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG cannot add indexer by reading Jackett config #832

Closed
tigermanIT opened this issue Jan 27, 2023 · 22 comments
Closed

BUG cannot add indexer by reading Jackett config #832

tigermanIT opened this issue Jan 27, 2023 · 22 comments

Comments

@tigermanIT
Copy link

nzbhydra-debuginfos-2023-01-27-22-13.zip

Hi, cannot add indexer by reading Jackett config version v0.20.2721

Steps to reproduce :

Starting nzbhydra2 Version: 5.1.1
Go to http://localhost:5076/config/indexers
Add new indexer
Torrents - Choose from presets - Read from jackett config

Jackett config :
Host : http://127.0.0.1:9117
API KEY : aqvj6yk7p.....

get this when I click submit :
An error occurred:
undefined

Message: undefined

Please can you help
Giuseppe

@theotherp
Copy link
Owner

Sorry for the troubles. Please create and attach a debug infos zip.

@tigermanIT
Copy link
Author

debug infos was already attached in my previous message

I'm attaching it again

thanks for your support

nzbhydra-debuginfos-2023-01-27-22-13 (1).zip

@theotherp
Copy link
Owner

theotherp commented Jan 28, 2023 via email

@theotherp
Copy link
Owner

Probably fixed in the next release. I wasn't able to reproduce the source of the issue but hopefully how it affects saving the config.

@tigermanIT
Copy link
Author

tigermanIT commented Feb 6, 2023

Hello
updated to 5.1.2
but issue still exists

Please reopen this bug

also if I try to create a debug infos zip I get this error message :
An error occurred:
undefined
Message: undefined

so I can attach nzbhydra2.log :
nzbhydra2.log

@theotherp theotherp reopened this Feb 6, 2023
@theotherp
Copy link
Owner

The debug infos can be created but not uploaded, it seems. But the log is enough.

@theotherp
Copy link
Owner

Call http://127.0.0.1:9117/api/v2.0/indexers/all/results/torznab?apikey=&t=indexers&configured=true (with your jackett api key) in your browser and check the output. Does it return indexer information? Or do you get an error?

In any case, please remove all API keys for private indexers and post the response.

@tigermanIT
Copy link
Author

Call http://127.0.0.1:9117/api/v2.0/indexers/all/results/torznab?apikey=&t=indexers&configured=true (with your jackett api key) in your browser and check the output. Does it return indexer information? Or do you get an error?

If I call in my browser then it returns indexer information immediately, no error

but if I go to http://localhost:5076/config/indexers
add indexer -- Torrents choose from presets -- Jackett/Cardigann
and set
Host : http://127.0.0.1:9117/api/v2.0/indexers/all/results/torznab
API Key : my Jackett api key
then I get this error message
The connection to the indexer failed: Error while communicating with indexer Jackett/Cardigann. Server returned: org.nzbhydra.webaccess.WebAccessException: Read timed out

In any case, please remove all API keys for private indexers and post the response.
Please explain me how I can do it

@theotherp
Copy link
Owner

Please post the output. NZBHydra cannot parse it for some reason while it can in my case so I think there's something in the XML that causes it but I can't fix it without the output.

@tigermanIT
Copy link
Author

tigermanIT commented Feb 6, 2023

attached file with output

@theotherp
Copy link
Owner

I don't understand what's going on. NZBHydra can parse that just fine. I even configured all your trackers in my jackett (which was a pain because holy shit you do have many) and I can parse it. I have modified the code to hopefully show a better error message.

@theotherp
Copy link
Owner

Please try with the new version and then post new debug infos.

@tigermanIT
Copy link
Author

I see two problems here

First :
Start nzbhydra2 Version: 5.1.4
Go to http://localhost:5076/config/indexers
Add new indexer
Torrents - Choose from presets - Read from jackett config
I get this error message :
Error reading jackett config
HTTP Status 500 – Internal Server Error

but If I call in my browser then it returns indexer information immediately, no error :
http://[127.0.0.1:9117/api/v2.0/indexers/all/results/torznab?apikey=&t=indexers&configured=true]

Second,
when I create debug infos then I get :
HTTP Status 500 – Internal Server Error

So what's going on ! I always get
HTTP Status 500 – Internal Server Error

attached log file :
nzbhydra2.log

@tigermanIT
Copy link
Author

also important thing
I get these errors even though I don't have indexers/trackers configured at all so It means that
It isn't a parse xml problem

@theotherp
Copy link
Owner

Yeah I forgot to fix the upload infos stuff but it should work if you create and download them instead of upload them.

Unfortunately I don't get any more infos on why the "unmarsheling" failed. I thought it was the parsing but it must be something else. No idea what, though.

@theotherp
Copy link
Owner

Ok, I can finally reproduce.

@theotherp
Copy link
Owner

Pleae replace the core.exe in your folder with this one and test again: https://ufile.io/6h1yfja1

@tigermanIT
Copy link
Author

yeah it works ! I can import indexers from Jackett
but still have problem with "Create and download debug infos"
still getting "HTTP Status 500 – Internal Server Error"

@theotherp
Copy link
Owner

Ok, post new log, then I can fix that too.

@tigermanIT
Copy link
Author

nzbhydra2.log

@theotherp
Copy link
Owner

I think you clicked "Create and upload debug infos"

@tigermanIT
Copy link
Author

oh sorry you are right man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants