gramps-project / gramps-web-api

A RESTful web API for Gramps
GNU Affero General Public License v3.0
71 stars 39 forks source link

422 Unprocessable Entity in Descendant Tree and Family Descendent Tree report. #517

Open ccrighton opened 1 month ago

ccrighton commented 1 month ago

Gramps details:

Gramps 5.2.2
Gramps Web API 2.3.0
Gramps Web Frontend 24.5.0
Gramps QL 0.3.0
locale: en
multi-tree: false
task queue: true

Steps to trigger error:

Result:

422 Unprocessable Entity
The request was well-formed but was unable to be followed due to semantic errors.

Other details:

This behaviour can be triggered in the demo system by following these steps. Demo System

If the The main family for the report is left unset, a report is generated by not from the family that is needed.

DavidMStraub commented 1 month ago

Can you please provide the error that is shown in the logs?

ccrighton commented 1 month ago

There is no error in the logs. I have a docker deployment of gramps. I'm seeing the same behaviour at demo.grampsweb.org.

This is the raw response from my server:

HTTP/1.1 422 UNPROCESSABLE ENTITY
Server: gunicorn
Date: Sat, 01 Jun 2024 02:56:09 GMT
Connection: close
Content-Type: text/html; charset=utf-8
Content-Length: 190
Vary: Accept-Encoding

From the demo system:

HTTP/2 422 
server: nginx/1.25.3
date: Sat, 01 Jun 2024 03:02:10 GMT
content-type: text/html; charset=utf-8
content-length: 190
vary: Accept-Encoding
strict-transport-security: max-age=31536000
X-Firefox-Spdy: h2

There isn't an obvious way to turn on debug logging in the docker image.