bookwyrm-social / bookwyrm

Social reading and reviewing, decentralized with ActivityPub
http://joinbookwyrm.com/
Other
2.24k stars 264 forks source link

ValueError('Invalid related remote id: ***') #3357

Open prolibre opened 5 months ago

prolibre commented 5 months ago

In Bookwyrm 0.7.3

I often get this error (via Flower) regarding the propagation of book changes between instances. When I look at the link I think there is confusion in the id. Here for example :

('Edition', 'Work', 'parent_work', 'https://bw.heraut.eu/book/52087', 'https://bouquins.zbeul.fr/book/42398')

52087 corresponds to an edition (on an instance) whereas 42398 corresponds to a book on the other instance.

It's a shame because changes are not propagated.

Traceback (most recent call last): File "/opt/bookwyrm/venv/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task R = retval = fun(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^ File "/opt/bookwyrm/venv/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__ return self.run(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/contextlib.py", line 81, in inner return func(args, kwds) ^^^^^^^^^^^^^^^^^^^ File "/opt/bookwyrm/bookwyrm/activitypub/base_activity.py", line 277, in set_related_field raise ValueError(f"Invalid related remote id: {related_remote_id}") ValueError: Invalid related remote id: https://bw.heraut.eu/book/52087