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

[rarbg] (testing) Exception (rarbg): Unexpected character encountered while parsing value: <. Path '', line 0, position 0.: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. #13350

Closed
3 tasks done
kshannoninnes opened this issue Jul 10, 2022 · 2 comments

Comments

@kshannoninnes
Copy link

kshannoninnes commented Jul 10, 2022

Have you checked our Troubleshooting page for your issue?

  • I have checked the Troubleshooting page

Is there already an issue for your problem?

  • I have checked older issues, open and closed

Have you read our Contributing Guidelines?

  • I have read the Contributing Guidelines

Environment

2022-07-11 00:41:59 	Info 	Using HTTP Client: HttpWebClient2
2022-07-11 00:41:59 	Info 	Using FlareSolverr: No
2022-07-11 00:41:59 	Info 	Using proxy: Disabled
2022-07-11 00:41:59 	Info 	App config/log directory: C:\ProgramData\Jackett
2022-07-11 00:41:59 	Info 	ThreadPool MaxThreads: 1023 workerThreads, 1000 completionPortThreads
2022-07-11 00:41:59 	Info 	Running in Docker: No
2022-07-11 00:41:59 	Info 	Jackett variant: CoreWindows
2022-07-11 00:41:59 	Info 	OS version: Microsoft Windows NT 10.0.19044.0 (64bit OS)
2022-07-11 00:41:59 	Info 	Environment version: 6.0.6 (C:\ProgramData\Jackett\)
2022-07-11 00:41:58 	Info 	Starting Jackett v0.20.1296

Description

Not really sure what special steps there might be.

  • Log into Jackett
  • Click "Test" on existing RARBG indexer
  • Expect a successful test, but get the below exception message instead

Exception (rarbg): Unexpected character encountered while parsing value: <. Path '', line 0, position 0.: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

Logged Error Messages

2022-07-11 00:43:52 	Error 	Jackett.Common.IndexerException: Exception (rarbg): Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
 ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Jackett.Common.Indexers.RarBG.PerformQueryWithRetry(TorznabQuery query, Boolean retry) in D:\a\1\s\src\Jackett.Common\Indexers\RarBG.cs:line 143
   at Jackett.Common.Indexers.RarBG.PerformQuery(TorznabQuery query) in D:\a\1\s\src\Jackett.Common\Indexers\RarBG.cs:line 134
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in D:\a\1\s\src\Jackett.Common\Indexers\BaseIndexer.cs:line 310
   --- End of inner exception stack trace ---
   at Jackett.Common.Indexers.BaseIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in D:\a\1\s\src\Jackett.Common\Indexers\BaseIndexer.cs:line 322
   at Jackett.Common.Indexers.BaseWebIndexer.ResultsForQuery(TorznabQuery query, Boolean isMetaIndexer) in D:\a\1\s\src\Jackett.Common\Indexers\BaseIndexer.cs:line 677
   at Jackett.Common.Services.IndexerManagerService.TestIndexer(String name) in D:\a\1\s\src\Jackett.Common\Services\IndexerManagerService.cs:line 309
   at Jackett.Server.Controllers.IndexerApiController.Test() in D:\a\1\s\src\Jackett.Server\Controllers\IndexerApiController.cs:line 132
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jackett.Server.Middleware.CustomExceptionHandler.Invoke(HttpContext httpContext) in D:\a\1\s\src\Jackett.Server\Middleware\CustomExceptionHandler.cs:line 26
2022-07-11 00:43:49 	Warn 	Request to RARBG failed with status 520. Retrying in 1s... (Attempt 2 of 2).
2022-07-11 00:43:46 	Warn 	Request to RARBG failed with status 520. Retrying in 0.5s... (Attempt 1 of 2).
2022-07-11 00:42:07 	Info 	Jackett startup finished in 10.296 s
2022-07-11 00:42:07 	Info 	Adding filter indexer ('type:semi-public' indexer) ...
2022-07-11 00:42:07 	Info 	Adding filter indexer ('type:private' indexer) ...
2022-07-11 00:42:07 	Info 	Adding filter indexer ('type:public' indexer) ...
2022-07-11 00:42:07 	Info 	Adding aggregate indexer ('all' indexer) ...
2022-07-11 00:42:07 	Info 	Loaded 585 indexers in total
2022-07-11 00:42:07 	Info 	Loaded 503 Cardigann indexers: 
2022-07-11 00:42:00 	Info 	Loading Cardigann indexers from: C:\Windows\system32\config\systemprofile\AppData\Roaming\cardigann\definitions\, C:\Windows\system32\config\systemprofile\AppData\Local\cardigann\definitions\, C:\ProgramData\Jackett\Definitions
2022-07-11 00:42:00 	Info 	Loaded 82 Native indexers: 
2022-07-11 00:41:59 	Info 	Loading Native indexers ...
2022-07-11 00:41:59 	Info 	Using HTTP Client: HttpWebClient2
2022-07-11 00:41:59 	Info 	Using FlareSolverr: No
2022-07-11 00:41:59 	Info 	Using proxy: Disabled
2022-07-11 00:41:59 	Info 	App config/log directory: C:\ProgramData\Jackett
2022-07-11 00:41:59 	Info 	ThreadPool MaxThreads: 1023 workerThreads, 1000 completionPortThreads
2022-07-11 00:41:59 	Info 	Running in Docker: No
2022-07-11 00:41:59 	Info 	Jackett variant: CoreWindows
2022-07-11 00:41:59 	Info 	OS version: Microsoft Windows NT 10.0.19044.0 (64bit OS)
2022-07-11 00:41:59 	Info 	Environment version: 6.0.6 (C:\ProgramData\Jackett\)
2022-07-11 00:41:58 	Info 	Starting Jackett v0.20.1296

Screenshots

No response

@garfield69
Copy link
Contributor

The RARBG API server at https://torrentapi.org/ is intermittently returning an Error 520 which results in a non-JSON response being returns to the indexer.
I'll try to add some detection code so the indexer can generated a better error message
But apart from that there is nothing we can do about it, as the issue is at the server end.
Try using the indexer again later. I've had a initial error just now, then a successful test a couple minutes later.

@garfield69
Copy link
Contributor

v0.20.1299

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