You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using format=json on the api, the wrong mediatype is returned.
This causes a problem when using different frameworks in java since automatic decoding is not supported.
For example the following code snippet will return an exception:
Will send a request url: https://<hostname>/ws.php?format=json&method=pwg.images.getInfo&image_id=339
And result in an exception:
org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/plain;charset=utf-8, type=class <package>.PiwigoResponse, genericType=class <package>.PiwigoResponse.
The text was updated successfully, but these errors were encountered:
When using format=json on the api, the wrong mediatype is returned.
This causes a problem when using different frameworks in java since automatic decoding is not supported.
For example the following code snippet will return an exception:
Will send a request url:
https://<hostname>/ws.php?format=json&method=pwg.images.getInfo&image_id=339
And result in an exception:
The text was updated successfully, but these errors were encountered: