[BUG] API methods return warnings and error messages in HTML before/after JSON object #1374

Closed
opened 2026-10-05 00:41:17 +02:00 by adam · 2 comments
Owner

When there is an issue on a server like for example a problem in the database, the server returns a message in HTML together with the JSON object returned by the called API method. The message is often placed before the JSON object but also sometimes after.

What would be expected is that the API methods only return JSON objects. The server should also collect, store and send the messages to the admin.

When there is an issue on a server like for example a problem in the database, the server returns a message in HTML together with the JSON object returned by the called API method. The message is often placed before the JSON object but also sometimes after. What would be expected is that the API methods only return JSON objects. The server should also collect, store and send the messages to the admin. <!-- github-sync-id:1059497467 -->
adam closed this issue 2026-10-05 00:41:18 +02:00
Author
Owner

Related: #281

Related: #281 <!-- github-comment-id:975859275 -->
Author
Owner

Duplicate of #281

Duplicate of #281 <!-- github-comment-id:3628152743 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1374