Skip to content
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

invalid entity type when trying to add a new author to a work #494

Open
raphodn opened this issue May 20, 2024 · 1 comment
Open

invalid entity type when trying to add a new author to a work #494

raphodn opened this issue May 20, 2024 · 1 comment

Comments

@raphodn
Copy link

raphodn commented May 20, 2024

Hi ! New user here, sorry in advance if I'm doing something wrong or if my issue is basic..

I created my account, uploaded my list of books, and I am going through the few books where the author is "unknown".

For this work - https://inventaire.io/entity/inv:8f87757e49ac143cecbc7522dafa41af/edit - I had to create the author in wikidata : https://www.wikidata.org/wiki/Q125998095 (my first contribution there in a long time)

But I am not able to add it afterwards as the author of the work, I get a "invalid entity type" error.

Thanks in advance for your help :)

@raphodn raphodn changed the title invalid entity type when trying to add an author to a work invalid entity type when trying to add a new author to a work May 20, 2024
@jum-s jum-s added the bug label May 22, 2024
@maxlath
Copy link
Member

maxlath commented Jun 1, 2024

Hi! That was a caching issue: Q125998095 had been put in the inventaire server cache before it had a P31=Q5 statement, making it an entity without type. Forcing a cache refresh (by visiting the entity editor page https://inventaire.io/entity/wd:Q125998095/edit or via the API https://inventaire.io/api/entities?action=by-uris&uris=wd:Q125998095&refresh=true) fixed the issue.

One way to reduce false positives on that error could be to automatically force a cache refresh when encountering this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants