Page MenuHomeSoftware Heritage
Paste P1007

can't read randomized origin visit status because... <- insert reason here ;)
ActivePublic

Authored by ardumont on Apr 15 2021, 5:35 PM.
```
(Pdb++) self._swh_storage.origin_visit_status_get_random('git')
*** swh.core.api.RemoteException: <RemoteException 500 TypeError: ["can not serialize '_GenericAlias' object"]>
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/api/__init__.py", line 181, in meth_
return self.post(meth._endpoint_path, post_data)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/api/__init__.py", line 278, in post
return self._decode_response(response)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/api/__init__.py", line 354, in _decode_response
self.raise_for_status(response)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-storage/swh/storage/api/client.py", line 29, in raise_for_status
super().raise_for_status(response)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/api/__init__.py", line 344, in raise_for_status
raise exception from None
```
from venv:
```
(swh) tony@yavin4 $ swh icinga_plugins check-savecodenow --swh-storage-url http://localhost:5002/ --swh-web-url https://webapp.staging.swh.network origin
WARNING:swh.core.cli:Could not load subcommand scanner: swh-scanner
[12] > /home/tony/work/inria/repo/swh/swh-environment/swh-icinga-plugins/swh/icinga_plugins/save_code_now.py(38)_pick_random_origin()
-> origin = self._swh_storage.origin_visit_status_get_random(visit_type)
(Pdb++) n
swh.core.api.RemoteException: <RemoteException 500 TypeError: ["can not serialize '_GenericAlias' object"]>
```

Event Timeline

ardumont changed the title of this paste from narmol? to Is this expected?.Apr 15 2021, 5:39 PM
ardumont changed the title of this paste from Is this expected? to can't read randomized origin visit status because... <- insert reason here ;).Apr 15 2021, 5:51 PM
ardumont edited the content of this paste. (Show Details)