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
QML QQuickImage: Failed to download image: <url snip> (qrc:/resources/qml/delegates/ImageMessage.qml:112, ) [2024-09-11 14:53:06.869] [net] [error] Failed to download <url snip>: (connection: Operation was aborted by an application callback, http: 307, parser: [json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON [while parsing error]: )
I think you may have added the redirect support to the wrong endpoint? Is your server using the new or the old style urls? I.e. /media/v3 or /client/v1/media?
QML QQuickImage: Failed to download image: <url snip> (qrc:/resources/qml/delegates/ImageMessage.qml:112, ) [2024-09-11 14:53:06.869] [net] [error] Failed to download <url snip>: (connection: Operation was aborted by an application callback, http: 307, parser: [json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON [while parsing error]: )
mtxclient/lib/http/client.cpp
Line 840 in a0b2039
Sometimes the matrix image urls are redirects to S3 buckets elsewhere so this callback above needs to follow redirects.
When I explicitly handle http code 307 by making another get request to the
location
header, it works as expected.I'm certain there's a better way of doing this but simply setting
num_redirects
to 10 in the top levelget
did not work. I did not look into why.Thanks
The text was updated successfully, but these errors were encountered: