-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError('Invalid related remote id: ***') #3357
Comments
This is pretty confusing, but I have also seen this error. I think you have the
Here's the full context for this error: instance = origin_model.find_existing_by_remote_id(related_remote_id)
if not instance:
raise ValueError(f"Invalid related remote id: {related_remote_id}")
@prolibre can you explain more (if you can remember) where the update happened? I don't quite understand what we're looking at here: is it an update from bw.heraut.eu that has been received by bouquins.zbeul.fr, or is it the other way around, or is this appearing on the server where the update was made (in which case - which one)? I've tracked this back through the code and it looks like the |
Hello @hughrun So the last error I get in log (because I get them quite often) is about a book that can't be found on my instance... https://bw.heraut.eu/book/71527 indicates that the book doesn't exist. Error: However, if I search by title (Kon-Tiki) I find a book: https://bw.heraut.eu/book/71529/s/kon-tiki (with an id not far from the one in my logs). All this is probably not very clear, but I think this error comes from the book import phase on my instance. |
@prolibre Thank you! Actually this is very clear and I now realise I misunderstood what was happening. You've basically confirmed it's the same bug as #3019.
I think I may have just worked out why this happens - more soon. |
@prolibre sorry I only just picked up on this:
Do you mean user imports? If so I strongly recommend you disable them until we have merged #3431 and issued a new release. Or do you mean book imports e.g. from GoodReads? Or do you mean something else? |
@hughrun ah no sorry, I meant when adding a book from another instance. The term “import” is indeed confusing. |
This is very perplexing: I spent most of the day looking into this and I can't work out how it is possible. @prolibre are there any other errors that seem to happen around the same time? |
@hughrun For the moment I can't see anything, but I'm going to increase the number of processes stored by Flower to keep more error logs. |
@hughrun SUCCESS FAILURE
|
@prolibre thankyou this is a super useful example. It's definitely the same bug as #3019. So I can see here we have three identical Editions come in, 2 on https://bw.heraut.eu/book/71755 and one on https://bw.heraut.eu/book/71754 I'm investigating this, it's a significant bug. |
Ok I've figured this out. It's late here: I'll post an explanation tomorrow my time. |
Hmm ok I have not figured this out. It really is making no sense. What I know definitely for sure, from testing this a bit:
|
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
The text was updated successfully, but these errors were encountered: