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

PMID from EuropePMC no working well (or at least I am getting weird behaviour) #203

Open
lubianat opened this issue Jul 11, 2024 · 1 comment

Comments

@lubianat
Copy link

I've got an error here when running the Cellosaurus bot:

Code:

  print(pmid)
  wdi_publication_helper = wdi_helpers.PublicationHelper(
      ext_id=pmid, id_type="pmid", source="europepmc"
  )
    wdi_result = wdi_publication_helper.get_or_create(login_instance)

Then I get the error:

33892290
Error while writing to Wikidata
{'error': {'code': 'modification-failed', 'info': 'Must be at least one character long', 'messages': [{'name': 'wikibase-validator-too-short', 'parameters': ['1', ''], 'html': {'*': 'Must be at least one character long'}}], '*': 'See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.'}, 'servedby': 'mw-api-ext.eqiad.main-685fcc5bdb-lbmzh'}
('', ['unknown publication type, assuming publication'], WDApiError({'error': {'code': 'modification-failed', 'info': 'Must be at least one character long', 'messages': [{'name': 'wikibase-validator-too-short', 'parameters': ['1', ''], 'html': {'*': 'Must be at least one character long'}}], '*': 'See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.'}, 'servedby': 'mw-api-ext.eqiad.main-685fcc5bdb-lbmzh'}))

Do you know what could be causing that? Thanks!

@lubianat
Copy link
Author

oh apparently it is deprecated, I am sorry!

#173 (comment)

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

No branches or pull requests

1 participant