Hey, I was using the latest Offpunk 2.0 release built from git on
2023-11-21 and encountered a few errors. It happens when following a
link from a gemini resource to another gemini resource. It happened to
me often enough that I thought I would report it. Here is the error
message :
ERROR4: <class 'RuntimeError'> : not found
Traceback (most recent call last):
File "/usr/lib/python3.11/cmd.py", line 214, in onecmd
func = getattr(self, 'do_' + cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'GeminiClient' object has no attribute 'do_4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/netcache.py", line 799, in fetch
path=_fetch_gemini(url,**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/netcache.py", line 734, in _fetch_gemini
raise RuntimeError(meta)
RuntimeError: not found
Let me know if I can help any further.
--
berru
On 23/11/21 01:07, berru@riseup.net wrote:
>Hey, I was using the latest Offpunk 2.0 release built from git on
>2023-11-21 and encountered a few errors. It happens when following a
>link from a gemini resource to another gemini resource. It happened to
>me often enough that I thought I would report it. Here is the error
>message :
>
>ERROR4: <class 'RuntimeError'> : not found
>Traceback (most recent call last):
> File "/usr/lib/python3.11/cmd.py", line 214, in onecmd
> func = getattr(self, 'do_' + cmd)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>AttributeError: 'GeminiClient' object has no attribute 'do_4'
>
>During handling of the above exception, another exception occurred:
>
>Traceback (most recent call last):
> File "/usr/lib/python3.11/site-packages/netcache.py", line 799, in fetch
> path=_fetch_gemini(url,**kwargs)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.11/site-packages/netcache.py", line 734, in _fetch_gemini
> raise RuntimeError(meta)
>RuntimeError: not found
>
>Let me know if I can help any further.
>
Ok, that’s interesting. In fact, it is simply the error raised because
the ressource was not found by the remote server. So, basically, a 404
error.
But the error is raised in python and produce a traceback. The goal of
the traceback is to stop all the network code (because there’s nothing
to get anyway). But I admit it is confusing.
Would you mind opening a ticket about the subject?
Should be "Netcache: gemini status 4 and 5 should not emit a full
traceback"
Thanks!
>--
>
>berru
--
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html