-
Notifications
You must be signed in to change notification settings - Fork 62
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
Deleting media object shows error #513
Comments
Hi, the error you pasted shows that Web API looks for a media object (not media file) and doesn't find it in the database. Is that the one you deleted? If yes, the question is why it's still being looked for. Can you check the browser console which API call triggers the 404, and when opening which view? Concerning S3: yes, that's how it's supposed to work - working for me. Btw |
Console log here. I noticed that backend message shows up when I deleted the media object.
This also shows up the first time i refreshed the page after deleting(Doesn't seem to be consistent to me). Sorry not sure what's the easiest way to verify |
This comment was marked as off-topic.
This comment was marked as off-topic.
Please open a discussion or forum post on your S3 setup questions, this is unrelated to the issue. |
There is not enough information in this issue to understand if something is wrong with Gramps Web API. I suggest to run check & repair on the database and see if the error persists. If it does, it is crucial to check which API call actually fails. You can use the network tab in the browser dev console to find out. |
Hello. It's not critical to me. I am able to reproduce it. It is looking for the file I just deleted. The error does not persist. It's likely a front end bug. Where after I deleted the file, the front end does not know that right away. So it looks for those files. In fact, I can see that deleted file still listed in the List view. Refreshing the page makes the error go away. In the browser dev cosole, I see Since it is not critical, you may feel free to punt on this issue. Thank you. |
Thanks for providing more detail, I think I see what the problem is. The deletion happens in edit mode, after deletion the frontend shows the home page (since the deleted object does not exist anymore), but the media object view (which is just hidden) is still in edit mode and tries to fetch the thumbnail, which errors. |
Will shift to the frontend repo. |
Tried to delete a media object(through browser). It seems to be deleted when looking at it through front end. I am running grampsweb docker container. However docker logs shows this error. (I deleted 2 objects).
Let me tack on 1 other issues I am facing that I might be potentially related(maybe not too):
I was expecting that when I upload a jpeg, it would show up in my bucket. That did not happen.
I am not sure this error is related though. I did double check that
AWS_SECRET_ACCESS_KEY
,AWS_ACCESS_KEY_ID
andAWS_ENDPOINT_URL
are set in environment(inside the running container). Confirmed via python shell boto3 library that I can get access to the bucket. I didn't see other errors in the log.MEDIA_BASE_DIR="s3://<bucket-name>"
is also set in config.cfg.The text was updated successfully, but these errors were encountered: