Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the error message provided by the server's media endpoints #832

Merged

Conversation

redstrate
Copy link
Contributor

This is usually more descriptive than what Qt gives us, like "remote media download failed" instead of an empty error message.

Before

QML QQuickImage: Error transferring https://pyra.sh/_matrix/media/v3/download/kde.org/a0912dce19090768b1ccd789de10e5cc18766012?allow_remote=true&timeout_ms=20000&allow_redirect=false - server replied: 

After

QML QQuickImage: Not found (https://pyra.sh/_matrix/media/v3/download/kde.org/bf5be8d9178cadaf45cc6d2d00653f69b04f2b84?allow_remote=true&timeout_ms=20000&allow_redirect=false)

This is usually more descriptive than what Qt gives us, like
"remote media download failed" instead of an empty error message.
Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. This is a side-effect of MxcReply not being able to use BaseJob requests that already deal with it (or the other way around, BaseJob not being written in such a way that could be used from NetworkAccessManager - thread-safety being one of the issues).

@KitsuneRal KitsuneRal merged commit 2092ebc into quotient-im:dev Nov 16, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants