REST API: X-Status-Reason not returned any more

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PiotrB
    Junior Member
    • Jan 2019
    • 3

    REST API: X-Status-Reason not returned any more

    Hi, I'm creating contact with long lastName (101 characters). See

    Code:
    → curl -H "Espo-Authorization: $AUTH" 'https://donald-syncduck.espocloud.eu/api/v1/contact' -X POST -H "Content-Type: application/json" -d '{"lastName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}' -i
    HTTP/1.1 200 OK
    Server: nginx
    Date: Mon, 21 Jan 2019 13:42:21 GMT
    Content-Type: text/html;charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
    X-Frame-Options: DENY
    There is no error indication (HTTP code is 200, no `X-Status-Reason` header). I have old log entry and I got 500 HTTP code with "X-Status-Reason: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'last_name' at row 1" error back then. I think old behaviour should be restored.
Working...