Hey! Getting this type of error
Jackett version: 0.12.1582.0
Error:
Jackett.Common.ExceptionWithConfigData: Login Failed, got redirected. at Jackett.Common.Indexers.CardigannIndexer.TestLogin() in /home/appveyor/projects/jackett/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 788 at Jackett.Common.Indexers.CardigannIndexer.ApplyConfiguration(JToken configJson) in /home/appveyor/projects/jackett/src/Jackett.Common/Indexers/CardigannIndexer.cs:line 949 at Jackett.Server.Controllers.IndexerApiController.UpdateConfig(ConfigItem[] config) in /home/appveyor/projects/jackett/src/Jackett.Server/Controllers/IndexerApiController.cs:line 94 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
Duplicate of #6661
Hi @Prosecutor,
This issue looks similar to #6661.
To prevent issue tracker clutter, this issue will now be closed. If you feel this issue isn't a duplicate of #6661, then feel free to post a comment on this issue stating why it's not a duplicate. Your comment will automatically re-open this issue.
It's not a dupe. The Jackett is hosted on the same server from which I'm loggined to the tracker.
is this the first time you are adding the teamhd indexer to Jackett?
@garfield69 Yes, exactly.
you opened #5728 previously but did not get a solve...
Are you now able to open a browser on the same jackett machine to copy the cookie with the same ip address as jackett?
@n-ozerov is this indexer working for you?
@garfield69 It was solved. That was on my previous Dedi with other account, also that error was just related with captcha.
I鈥檝e mentioned, that I鈥檓 doing it from the same machine where jackett is located and getting this type of error.
@garfield69
I'm getting same error when trying to login via cookies. I'm pretty much sure that cookies become invalid when user agent changes because every browser update drops session.
Is there a way to set user agent in definition?
easy enough to test.
so shutdown your jackett service and edit the teamhd.yml indexer and add the following
headers:
User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"]
just after the Search: key, replacing the useragent keyword and string with whatever one your browser is using when you grab your cookie
startup the service and test.
if it works I can amend the indexer to add a config option so you can update it at the same time you update the cookie.
Maybe i'm doing smth wrong, still getting redirect. :(
But i'm pretty sure login depends upon user-agent.
i've a couple indexers that use
https://github.com/Jackett/Jackett/blob/593680f8d3390d43da3e353002575d746e699f21/src/Jackett.Common/Definitions/torrentquest.yml#L44-L46
search:
headers:
User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"]
Accept: ["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"]
It doesn't work for me either.
beyond my skills. open to volunteers who can help.
@n-ozerov You should change user-agent within your browser (from which you are copying the cookie) to the same user agent as Jackett use. On details how it can be done you can follow steps 2 & 3 from https://github.com/Jackett/Jackett/issues/6070#issuecomment-545607603
@Lonli-Lokli How to do it in Chrome?
I added in teamhd.yml file these lines and still getting an error.
Same user agent uses jackett/teamhd.
headers:
User-Agent: ["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"]
@Prosecutor You should follow this instructions https://winaero.com/blog/change-user-agent-chrome/ and set custom user agent, same as in teamhd.yml, before fetching the cookie.
@Lonli-Lokli Still not working for me.
@Prosecutor works on my side
I'm not sure if exact steps matter, but here they are:
Looks like
search: headers: User-Agent:
doesn't work. I've checked that Jackett's user agent still remains the same.
Probably because of this: #7786
upd: actually, setting user-agent this way was never supported by Jackett https://github.com/Jackett/Jackett/issues/7786#issuecomment-616613811
@janot Does not works for me. I'm logging TeamHD where jackett is running(same machine), so the User-Agent is exactly the same for both of them, no need to change them.
@Prosecutor No, Jackett has it's own user-agent which is hardcoded:
https://github.com/Jackett/Jackett/blob/3f01a615108f08e6665c6702590c513e19725ed4/src/Jackett.Common/Utils/BrowserUtil.cs#L9-L11
There's link in my previous comment to the issue exactly about that.
@janot Yep, it works.
Ended up facing the same issue. Since it's still open, is there a solution for this?