Skip to content

Timeout for REST API Item creation on Staging Portal #217

Description

@MarcoReidelbach

Describe the bug
When creating an item via the Wikibase REST API on staging.mardi4nfdi.org, the request returns HTTP 200 but with an HTML fatal error in the response body instead of JSON and no item creation. Error messages received in different trials

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/w/includes/libs/Rdbms/Database/DatabaseMySQL.php on line 689

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/w/includes/libs/Rdbms/Database/Database.php on line 405

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/w/includes/libs/Rdbms/Database/Query.php on line 52

Creating new items like this worked without problems in the past.

Expected behavior

  • Create new item upon post request.
    (- Do not return 200 in such cases)

To Reproduce

Send paylod, e.g.

{"item": {"labels": {"en": "abc"}, "descriptions": {"en": "def"}, "statements": {"P3": [{"property": {"id": "P3", "data_type": "wikibase-item"}, "value": {"type": "value", "content": "Q3758"}}], "P582": [{"property": {"id": "P582", "data_type": "wikibase-item"}, "value": {"type": "value", "content": "Q3842"}}], "P583": [{"property": {"id": "P583", "data_type": "wikibase-item"}, "value": {"type": "value", "content": "Q13354"}}]}}}

to endpoint

https://staging.mardi4nfdi.org/w/rest.php/wikibase/v1/entities/items

Checklist for this issue:
(Some checks for making sure this issue is completely formulated)

  • Assignee has been set for this issue
  • All fields of the issue have been filled
  • the main MaRDI project has been assigned as project

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions