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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing Error Message Trying To Update Prowlarr #69

Open
ProfMoo opened this issue Jun 22, 2024 · 0 comments
Open

Confusing Error Message Trying To Update Prowlarr #69

ProfMoo opened this issue Jun 22, 2024 · 0 comments

Comments

@ProfMoo
Copy link

ProfMoo commented Jun 22, 2024

Hi once again 馃槃.

I am trying to use Buildarr for all my *arr setups in my repo here. Here is my builldarr config.

When I startup the pod, which is configured to update Prowlarr, I get this error message (I'm using debug level logging):

2024-06-22 23:04:35,338 buildarr:1 buildarr_prowlarr.config.settings.indexers.indexers [INFO] <prowlarr> (prowlarr) prowlarr.settings.indexers.indexers.definitions['Orpheus'].fields['torrentBaseSettings.appMinimumSeeders']: None (created)
2024-06-22 23:04:35,338 buildarr:1 buildarr_prowlarr.config.settings.indexers.indexers [INFO] <prowlarr> (prowlarr) prowlarr.settings.indexers.indexers.definitions['Orpheus'].fields['torrentBaseSettings.seedRatio']: None (created)
2024-06-22 23:04:35,338 buildarr:1 buildarr_prowlarr.config.settings.indexers.indexers [INFO] <prowlarr> (prowlarr) prowlarr.settings.indexers.indexers.definitions['Orpheus'].fields['torrentBaseSettings.seedTime']: None (created)
2024-06-22 23:04:35,338 buildarr:1 buildarr_prowlarr.config.settings.indexers.indexers [INFO] <prowlarr> (prowlarr) prowlarr.settings.indexers.indexers.definitions['Orpheus'].fields['torrentBaseSettings.packSeedTime']: None (created)
2024-06-22 23:04:35,347 buildarr:1 urllib3.connectionpool [DEBUG] <prowlarr> (prowlarr) Starting new HTTP connection (1): prowlarr.media.svc.cluster.local:80
send: b'POST /api/v1/indexer HTTP/1.1\r\nHost: prowlarr.media.svc.cluster.local\r\nAccept-Encoding: identity\r\nContent-Length: 6336\r\nAccept: application/json\r\nContent-Type: application/json\r\nUser-Agent: prowlarr-py/v0.4.1\r\nX-Api-Key: foobarbazfoobarbazfoobarbazfooba\r\n\r\n'
send: b'<REDACTED>'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Type: application/json
header: Date: Sat, 22 Jun 2024 23:04:35 GMT
header: Server: Kestrel
header: Cache-Control: no-cache,no-store
header: Expires: -1
header: Pragma: no-cache
header: Transfer-Encoding: chunked
2024-06-22 23:04:36,495 buildarr:1 urllib3.connectionpool [DEBUG] <prowlarr> (prowlarr) http://prowlarr.media.svc.cluster.local:80 "POST /api/v1/indexer HTTP/1.1" 400 None
2024-06-22 23:04:36,497 buildarr:1 prowlarr.rest [DEBUG] <prowlarr> (prowlarr) response body: b'[\n  {\n    "isWarning": false,\n    "propertyName": "",\n    "errorMessage": "Query successful, but no results were returned from your indexer. This may be an issue with the indexer, your indexer category settings, or other indexer settings such as search freeleech only etc.",\n    "severity": "error"\n  }\n]'
2024-06-22 23:04:36,498 buildarr:1 buildarr.cli.daemon [ERROR] <prowlarr> (prowlarr) An error occurred while applying initial configuration: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Date': 'Sat, 22 Jun 2024 23:04:35 GMT', 'Server': 'Kestrel', 'Cache-Control': 'no-cache,no-store', 'Expires': '-1', 'Pragma': 'no-cache', 'Transfer-Encoding': 'chunked'})
HTTP response body: [
  {
    "isWarning": false,
    "propertyName": "",
    "errorMessage": "Query successful, but no results were returned from your indexer. This may be an issue with the indexer, your indexer category settings, or other indexer settings such as search freeleech only etc.",
    "severity": "error"
  }
]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/buildarr/cli/daemon.py", line 215, in _initial_run
    run_apply()
  File "/usr/local/lib/python3.11/site-packages/buildarr/cli/run.py", line 248, in _run
    if manager.update_remote(
       ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr/manager/__init__.py", line 192, in update_remote
    return local_instance_config.update_remote(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr/config/base.py", line 272, in update_remote
    if isinstance(field, ConfigBase) and field.update_remote(
                                         ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/buildarr_prowlarr/config/settings/__init__.py", line 76, in update_remote
    self.indexers.update_remote(
  File "/usr/local/lib/python3.11/site-packages/buildarr_prowlarr/config/settings/indexers/__init__.py", line 54, in update_remote
    self.indexers.update_remote(
  File "/usr/local/lib/python3.11/site-packages/buildarr_prowlarr/config/settings/indexers/indexers.py", line 695, in update_remote
    indexer._create_remote(
  File "/usr/local/lib/python3.11/site-packages/buildarr_prowlarr/config/settings/indexers/indexers.py", line 413, in _create_remote
    prowlarr.IndexerApi(api_client).create_indexer(
  File "pydantic/decorator.py", line 40, in pydantic.decorator.validate_arguments.validate.wrapper_function
  File "pydantic/decorator.py", line 134, in pydantic.decorator.ValidatedFunction.call
  File "pydantic/decorator.py", line 206, in pydantic.decorator.ValidatedFunction.execute
  File "/usr/local/lib/python3.11/site-packages/prowlarr/api/indexer_api.py", line 76, in create_indexer
    return self.create_indexer_with_http_info(force_save, indexer_resource, **kwargs)  # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pydantic/decorator.py", line 40, in pydantic.decorator.validate_arguments.validate.wrapper_function
  File "pydantic/decorator.py", line 134, in pydantic.decorator.ValidatedFunction.call
  File "pydantic/decorator.py", line 206, in pydantic.decorator.ValidatedFunction.execute
  File "/usr/local/lib/python3.11/site-packages/prowlarr/api/indexer_api.py", line 184, in create_indexer_with_http_info
    return self.api_client.call_api(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prowlarr/api_client.py", line 413, in call_api
    return self.__call_api(resource_path, method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prowlarr/api_client.py", line 228, in __call_api
    raise e
  File "/usr/local/lib/python3.11/site-packages/prowlarr/api_client.py", line 218, in __call_api
    response_data = self.request(
                    ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prowlarr/api_client.py", line 457, in request
    return self.rest_client.post_request(url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prowlarr/rest.py", line 270, in post_request
    return self.request("POST", url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prowlarr/rest.py", line 229, in request
    raise ApiException(http_resp=r)
prowlarr.exceptions.ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Date': 'Sat, 22 Jun 2024 23:04:35 GMT', 'Server': 'Kestrel', 'Cache-Control': 'no-cache,no-store', 'Expires': '-1', 'Pragma': 'no-cache', 'Transfer-Encoding': 'chunked'})
HTTP response body: [
  {
    "isWarning": false,
    "propertyName": "",
    "errorMessage": "Query successful, but no results were returned from your indexer. This may be an issue with the indexer, your indexer category settings, or other indexer settings such as search freeleech only etc.",
    "severity": "error"
  }
]

2024-06-22 23:04:36,516 buildarr:1 buildarr.cli.daemon [WARNING] Aborted applying initial configuration
2024-06-22 23:04:36,615 buildarr:1 buildarr.cli.daemon [INFO] Setting up signal handlers
2024-06-22 23:04:36,616 buildarr:1 buildarr.cli.daemon [DEBUG] Setting up SIGINT signal handler
2024-06-22 23:04:36,616 buildarr:1 buildarr.cli.daemon [DEBUG] Setting up SIGTERM signal handler
2024-06-22 23:04:36,617 buildarr:1 buildarr.cli.daemon [DEBUG] Setting up SIGHUP signal handler
2024-06-22 23:04:36,617 buildarr:1 buildarr.cli.daemon [INFO] Finished setting up signal handlers
2024-06-22 23:04:36,618 buildarr:1 buildarr.cli.daemon [INFO] The next run will be at 2024-06-23 02:30
2024-06-22 23:04:36,619 buildarr:1 buildarr.cli.daemon [INFO] Buildarr ready.
2024-06-22 23:04:36,619 buildarr:1 buildarr.cli.daemon [DEBUG] Thread 'MainThread' releasing daemon run lock

The logs seem to indicate that we're sending an invalid request that's somehow related to the indexer results 馃? I'm struggling to make sense of that one. If you have some time to take a look, any pointers would be appreciated here 馃檹.

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

1 participant