```
(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"]>
```