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

ValueError in query_http_uri: Can redirect only to http or https #7946

Closed
kozlovsky opened this issue Mar 27, 2024 · 2 comments
Closed

ValueError in query_http_uri: Can redirect only to http or https #7946

kozlovsky opened this issue Mar 27, 2024 · 2 comments
Assignees

Comments

@kozlovsky
Copy link
Contributor

kozlovsky commented Mar 27, 2024

Traceback (most recent call last):, 
  File "<relief>/core/components/restapi/rest/rest_manager.py", line 53, in error_middleware, 
  File "aiohttp/web_middlewares.py", line 117, in impl, 
  File "<relief>/core/components/libtorrent/restapi/torrentinfo_endpoint.py", line 102, in get_torrent_info, 
  File "<relief>/core/components/libtorrent/restapi/torrentinfo_endpoint.py", line 39, in query_http_uri, 
  File "aiohttp/client.py", line 624, in _request, 
ValueError: Can redirect only to http or https

Here:

    async def get_torrent_info(self, request):
        ...
            try:
                response = await query_http_uri(uri)
            except (ServerConnectionError, ClientResponseError, SSLError, ClientConnectorError, AsyncTimeoutError) as e:
                ...

ValueError should be added to the list of possible errors for query_http_uri

Copy link

Sentry issue: TRIBLER-1M6

@kozlovsky
Copy link
Contributor Author

Fixed in #7947

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

No branches or pull requests

1 participant