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

Zurg Ingestion: ZurgEndpointSuffix configuration value ignored? #72

Open
Naralux opened this issue Dec 13, 2024 · 2 comments
Open

Zurg Ingestion: ZurgEndpointSuffix configuration value ignored? #72

Naralux opened this issue Dec 13, 2024 · 2 comments

Comments

@Naralux
Copy link

Naralux commented Dec 13, 2024

I'm trying to get the Zurg ingestion to work, but I keep getting 404's. I get the idea that the value of ZurgEndpointSuffix as configured in the settings.json is not used.

Excerpt from my settings.json file:

    "Ingestion": {
      "ZurgInstances": [
        {
          "Url": "http://zurg:9999",
          "EndpointType": 1,
          "ApiKey": ""
        }
      ],
      "ZileanInstances": [],
      "EnableScraping": true,
      "Kubernetes": {
        "EnableServiceDiscovery": false,
        "KubernetesSelectors": [],
        "KubeConfigFile": "/$HOME/.kube/config",
        "AuthenticationType": 0
      },
      "ScrapeSchedule": "0 * * * *",
      "ZurgEndpointSuffix": "/http/torrents/",
      "ZileanEndpointSuffix": "/torrents/all",
      "RequestTimeout": 10000
    },
  1. Could this have something to do with the 404's?
  2. Or is /debug/torrents the correct endpoint? If so, is that a sponsor-only feature?
@Naralux
Copy link
Author

Naralux commented Dec 13, 2024

Logging excerpt:

zilean  | [22:04:49] | INFO | "Zilean.Scraper.Features.Ingestion.Endpoints.GenericIngestionScraping" | Starting ingestion scraping
zilean  | [22:04:49] | INFO | "Zilean.Scraper.Features.Ingestion.Endpoints.GenericIngestionScraping" | Adding Zurg instances to the list of URLs to process
zilean  | [22:04:49] | INFO | "Zilean.Scraper.Features.Ingestion.Processing.GenericProcessor" | Processing URL: GenericEndpoint { Url: "http://zurg:9999", EndpointType: Zurg, ApiKey: "" }
zilean  | [22:04:49] | EROR | "Zilean.Scraper.Features.Ingestion.Processing.GenericProcessor" | Error while fetching and producing entries for URL: "http://zurg:9999"
zilean  | System.Net.Http.HttpRequestException: Response status code does not indicate
zilean  | success: 404 (Not Found).
zilean  |   at HttpResponseMessage System.Net.Http.HttpResponseMessage.
zilean  |      EnsureSuccessStatusCode()
zilean  |   at async Task
zilean  |      Zilean.Scraper.Features.Ingestion.Processing.StreamedEntryProcessor.
zilean  |      ProduceEntriesAsync(ChannelWriter<Task<StreamedEntry>> writer,
zilean  |      CancellationToken cancellationToken) in
zilean  |      /build/src/Zilean.Scraper/Features/Ingestion/Processing/
zilean  |      StreamedEntryProcessor.cs:51
zilean  | ┌────────────────────┬───────┬───────────────────┐
zilean  | │ Description        │ Count │ Additional Info   │
zilean  | ├────────────────────┼───────┼───────────────────┤
zilean  | │ Processed torrents │ 0     │ Time Taken: 0.09s │
zilean  | └────────────────────┴───────┴───────────────────┘
zilean  | [22:04:50] | INFO | "Zilean.Scraper.Features.Ingestion.Endpoints.GenericIngestionScraping" | Ingestion scraping completed for 1 URLs
zilean  | [22:04:50] | INFO | "Zilean.ApiService.Features.Sync.GenericSyncJob" | Generic SyncJob completed

@titooo7
Copy link

titooo7 commented Dec 22, 2024

Hi there, I'm having a similar issue. In any case, I got a question. I notice that you don't have any ApiKey for ZurgInstances.

Is that because you edited it out? Aren't we suppose to add there the api key found in the token line of one of the config.yml files?

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