Version-Release number of selected component: dialect-1.3.0-1.fc34 Additional info: reporter: libreport-2.14.0 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-com.github.gi_lom.dialect.SearchProvider cmdline: /usr/bin/python3 /usr/share/dialect/search_provider crash_function: request exception_type: httpcore.LocalProtocolError executable: /usr/share/dialect/search_provider interpreter: python3-3.9.5-1.fc34.x86_64 kernel: 5.11.20-300.fc34.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: _exceptions.py:343:map_exceptions:httpx.LocalProtocolError: Missing hostname in URL. Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/httpx/_exceptions.py", line 326, in map_exceptions yield File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 861, in _send_single_request (status_code, headers, stream, ext) = transport.request( File "/usr/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 193, in request raise LocalProtocolError("Missing hostname in URL.") httpcore.LocalProtocolError: Missing hostname in URL. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/share/dialect/search_provider", line 208, in <module> TranslateService() File "/usr/share/dialect/search_provider", line 43, in __init__ self.translator = self._get_translator() File "/usr/share/dialect/search_provider", line 193, in _get_translator translator = TRANSLATORS[backend]( File "/usr/share/dialect/dialect/translators/libretrans.py", line 29, in __init__ r = self.client.get(self.lang_url) File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 907, in get return self.request( File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 733, in request return self.send( File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 767, in send response = self._send_handling_auth( File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 805, in _send_handling_auth response = self._send_handling_redirects( File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 837, in _send_handling_redirects response = self._send_single_request(request, timeout) File "/usr/lib/python3.9/site-packages/httpx/_client.py", line 861, in _send_single_request (status_code, headers, stream, ext) = transport.request( File "/usr/lib64/python3.9/contextlib.py", line 135, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python3.9/site-packages/httpx/_exceptions.py", line 343, in map_exceptions raise mapped_exc(message, **kwargs) from exc # type: ignore httpx.LocalProtocolError: Missing hostname in URL. Local variables in innermost frame: mapping: {<class 'httpcore.TimeoutException'>: <class 'httpx.TimeoutException'>, <class 'httpcore.ConnectTimeout'>: <class 'httpx.ConnectTimeout'>, <class 'httpcore.ReadTimeout'>: <class 'httpx.ReadTimeout'>, <class 'httpcore.WriteTimeout'>: <class 'httpx.WriteTimeout'>, <class 'httpcore.PoolTimeout'>: <class 'httpx.PoolTimeout'>, <class 'httpcore.NetworkError'>: <class 'httpx.NetworkError'>, <class 'httpcore.ConnectError'>: <class 'httpx.ConnectError'>, <class 'httpcore.ReadError'>: <class 'httpx.ReadError'>, <class 'httpcore.WriteError'>: <class 'httpx.WriteError'>, <class 'httpcore.CloseError'>: <class 'httpx.CloseError'>, <class 'httpcore.ProxyError'>: <class 'httpx.ProxyError'>, <class 'httpcore.UnsupportedProtocol'>: <class 'httpx.UnsupportedProtocol'>, <class 'httpcore.ProtocolError'>: <class 'httpx.ProtocolError'>, <class 'httpcore.LocalProtocolError'>: <class 'httpx.LocalProtocolError'>, <class 'httpcore.RemoteProtocolError'>: <class 'httpx.RemoteProtocolError'>} kwargs: {'request': <Request('GET', 'https:languages')>} mapped_exc: <class 'httpx.LocalProtocolError'> from_exc: <class 'httpcore.RemoteProtocolError'> to_exc: <class 'httpx.RemoteProtocolError'> message: 'Missing hostname in URL.'
Created attachment 1784540 [details] File: backtrace
Created attachment 1784541 [details] File: cpuinfo
Created attachment 1784542 [details] File: environ
Created attachment 1784543 [details] File: mountinfo
Created attachment 1784544 [details] File: namespaces
Created attachment 1784545 [details] File: open_fds
Hello :)! Sorry for the (very) late answer, but I was a bit overwhelmed recently. I'm now back and ready to treat this issue. Do you remember what was the libretranslate instance URL? Does it have any weird unicode glyph in it?
Hello :D! I have finally understood this issue! Indeed, when the libretranslate backend is chosen and is using the default instance, a key in dconf where is contained the instance URL isn't created, and the search provider thus fails to get the URL of the instance! And it fails at each start of the session! I am reporting this to the developers and will discuss with them a fix! Thank you very much for this bug report :D!
FEDORA-2021-c54b73dfb1 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c54b73dfb1
FEDORA-2021-38ecb2c2be has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-38ecb2c2be
FEDORA-2021-c54b73dfb1 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c54b73dfb1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c54b73dfb1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-38ecb2c2be has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-38ecb2c2be` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-38ecb2c2be See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-c54b73dfb1 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-38ecb2c2be has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.