Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1007
can't read randomized origin visit status because... <- insert reason here ;)
Active
Public
Actions
Authored by
ardumont
on Apr 15 2021, 5:35 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
```
(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
created this paste.
Apr 15 2021, 5:35 PM
2021-04-15 17:35:04 (UTC+2)
ardumont
changed the title of this paste from
narmol?
to
Is this expected?
.
Apr 15 2021, 5:39 PM
2021-04-15 17:39:45 (UTC+2)
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
2021-04-15 17:51:22 (UTC+2)
ardumont
edited the content of this paste.
(Show Details)
ardumont
edited the content of this paste.
(Show Details)
Apr 15 2021, 5:54 PM
2021-04-15 17:54:03 (UTC+2)
ardumont
added a comment.
Apr 15 2021, 6:02 PM
2021-04-15 18:02:14 (UTC+2)
Comment Actions
Related to
T2117
ardumont
mentioned this in
D5541: Add end to end save code now check
.
Apr 15 2021, 6:52 PM
2021-04-15 18:52:49 (UTC+2)
Log In to Comment