fix ActiveRecord::RecordNotFound: [WHERE "content_objects"."uri" = $1] - #175
fix ActiveRecord::RecordNotFound: [WHERE "content_objects"."uri" = $1]#175arte7 wants to merge 1 commit into
Conversation
That should not be possible. Please note that the job is being performed by a call to But it is true that it might not be able to create the missing actor. That is why fediscoverer/app/models/content_object.rb Line 73 in 202fa18 is chosen this way (as opposed to e.g. using fediscoverer/app/models/content_object.rb Line 77 in 202fa18 then takes of that case and returns early if Last but not least, the error you linked to is raised in this line: fediscoverer/app/models/content_object.rb Line 81 in 202fa18 and is not about the actor URI, but the URI of the content object itself. |
https://discovery.joinmastodon.org/jobs/applications/fediscoverer/jobs/222622af-54a2-409a-92c3-ade606aa1367?server_id=solid_queue
ActiveRecord::RecordNotFound: Couldn't find ContentObject with [WHERE "content_objects"."uri" = $1]
in
ContentObject::create_from_json!it is possible, that theRetrieveActorJobruns and has to create a new actor, while the next step increate_from_json!is to retrieve the actor from the database, which might not be there yet.are we fine with catching this error, or do we want a retry?
implements WEB-1205