Skip to content

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

Description

@lubianat

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions