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

error QNetworkReply::ProtocolInvalidOperationError #16

Open
DarthLowen opened this issue Mar 4, 2024 · 14 comments
Open

error QNetworkReply::ProtocolInvalidOperationError #16

DarthLowen opened this issue Mar 4, 2024 · 14 comments

Comments

@DarthLowen
Copy link

Hi, first of all, excellent project.

I ran the application (also compiled it from source to be sure) and got the output below. Any idea what I'm doing wrong? I think I have the correct user and project token. It keeps showing me the spinning wheel with an interrupt button (that doesn't do anything) and then goes into some infinite loop saying write componets! write elements

My figma project is a very simple project with some rectangles with gradient color and some colored text.

Thanks!

qrc:/QtCheckBox.qml:15:17: QML Rectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x12b9e93dfb0, parent=0x0, geometry=0,0 0x0)). Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference
qml: Save 1 1
qml: Frestore 1 1
write componets!
write elements
doRequestRendering "1:3" "RENDERING"  error QNetworkReply::ProtocolInvalidOperationError
qml: too many requests
qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/MessageDialog.qml:120:25: QML Rectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x12ba1e4c9d0, parent=0x0, geometry=0,0 0x0)). Please customize a non-native style (such as BaTimeout "1:4_timeout", etc). For more information,
Timeout "1:3_timeout"io/qt-6/qtquickcontrols2-customize.html#customization-reference
write componets!
write elements
doRetrieveImage "RENDERING" "1:3" false QUrl("")
qml: Rendering 1:3 Url not valid ""
qrc:/qt-project.org/imports/QtQuick/Dialogs/quickimpl/qml/MessageDialog.qml:120:25: QML Rectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x12ba1e4e6b0, parent=0x0, geometry=0,0 0x0)). Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference
doRetrieveImage "RENDERING" "1:4" false QUrl("")
qml: Rendering 1:4 Url not valid ""
write componets!
write elements
write componets!
write elements
<ad infinitum>
@mmertama
Copy link
Owner

mmertama commented Mar 7, 2024

Have you just retried later? Figma server have strange issues time to time, maybe just busy, and then just try again later helps. Especially any rendering request is a bit problematic as then Figma.com does the graphics rendering (to PNG) for you, that is relatively hard operation vs. just post JSON - therefore it has tendency to fail. See FigmaQML settings and avoid ticking any options that says rendering. I have to think alternatives for rendering, as that is intially implemented for testing

@DarthLowen
Copy link
Author

Hi, I've been trying on various different times now but unfortunately still the same. Also, if I click the settings button, all options are switched off, including all rendering options. Anything I can do from my end to help debug this? Enable some debug traces or anything?

@mmertama
Copy link
Owner

If you build in QtCreator and run - Debug mode uses quit lot of asserts, so if we are lucky it crash and tell where is the problem, but I doubt with this case - there is some debug console messages, but no specific logging. What is your OS? I have not tried with Windows lately.

@mmertama
Copy link
Owner

WASM version's networking get broken when I compiled it on 6.6.2 - Qt is investigating. Im waiting 6.7 - but prepared to fall back to 6.4

@teatralaik
Copy link

teatralaik commented Jun 18, 2024

WASM version's networking get broken when I compiled it on 6.6.2 - Qt is investigating. Im waiting 6.7 - but prepared to fall back to 6.4

Hi, Is there a way to solve this problem? simple 1 rect design is ok, but more complex design also freeze with "RENDERING" QNetworkReply::ProtocolInvalidOperationError error.
use Windows and Visual Studio

@mmertama
Copy link
Owner

mmertama commented Jun 18, 2024 via email

@teatralaik
Copy link

Excuse me, but i don't understand what is "native" build. I download qt, and install it, then i clone source, build it by cmake and run in visual studio 22. All of this in Windows, not inside VM

@mmertama
Copy link
Owner

By native I mean non-WASM, within windows build there shall not be a such issue.

@taimoortanweer1
Copy link

I have this exact same problem. I am using Qt 6.7. Using 3.1 version of this build...
Windows11

qml: Save 1 1
qml: Frestore 1 1
write componets!
write elements
doRequestRendering "8:61" "RENDERING" error QNetworkReply::ProtocolInvalidOperationError
qml: too many requests
Timeout "8:61_timeout"
Timeout "8:53_timeout"
Timeout "8:59_timeout"
Timeout "8:57_timeout"
write componets!
write elements
doRetrieveImage "RENDERING" "8:61" false QUrl("")
qml: Rendering 8:61 Url not valid ""
doRetrieveImage "RENDERING" "8:59" false QUrl("")
qml: Rendering 8:59 Url not valid ""
doRetrieveImage "RENDERING" "8:53" false QUrl("")
qml: Rendering 8:53 Url not valid ""
doRetrieveImage "RENDERING" "8:57" false QUrl("")
qml: Rendering 8:57 Url not valid ""
write componets!
write elements
write componets!
write elements
write componets!
write elements
.
.
.
.Infinity

@amireza007
Copy link

I have this exact same problem. I am using Qt 6.7. Using 3.1 version of this build... Windows11

qml: Save 1 1 qml: Frestore 1 1 write componets! write elements doRequestRendering "8:61" "RENDERING" error QNetworkReply::ProtocolInvalidOperationError qml: too many requests Timeout "8:61_timeout" Timeout "8:53_timeout" Timeout "8:59_timeout" Timeout "8:57_timeout" write componets! write elements doRetrieveImage "RENDERING" "8:61" false QUrl("") qml: Rendering 8:61 Url not valid "" doRetrieveImage "RENDERING" "8:59" false QUrl("") qml: Rendering 8:59 Url not valid "" doRetrieveImage "RENDERING" "8:53" false QUrl("") qml: Rendering 8:53 Url not valid "" doRetrieveImage "RENDERING" "8:57" false QUrl("") qml: Rendering 8:57 Url not valid "" write componets! write elements write componets! write elements write componets! write elements . . . .Infinity

I have this exact same problem. I am using Qt 6.7. Using 3.1 version of this build... Windows11

qml: Save 1 1 qml: Frestore 1 1 write componets! write elements doRequestRendering "8:61" "RENDERING" error QNetworkReply::ProtocolInvalidOperationError qml: too many requests Timeout "8:61_timeout" Timeout "8:53_timeout" Timeout "8:59_timeout" Timeout "8:57_timeout" write componets! write elements doRetrieveImage "RENDERING" "8:61" false QUrl("") qml: Rendering 8:61 Url not valid "" doRetrieveImage "RENDERING" "8:59" false QUrl("") qml: Rendering 8:59 Url not valid "" doRetrieveImage "RENDERING" "8:53" false QUrl("") qml: Rendering 8:53 Url not valid "" doRetrieveImage "RENDERING" "8:57" false QUrl("") qml: Rendering 8:57 Url not valid "" write componets! write elements write componets! write elements write componets! write elements . . . .Infinity

It seems there are problems with Two methods in the figmaget.cpp, namely: doRequestRendering and doRetrieveImage.

The resolution for now would be to remove the images from the Figma design file and uncheck the Render view in the settings of the compiled app.

@mmertama
Copy link
Owner

Generating images is pretty heavy operation and likely Figma server throttles image rendering operations.

@amireza007
Copy link

Generating images is pretty heavy operation and likely Figma server throttles image rendering operations.

hmm... That's good to know. So, there isn't any problem with doRetrieveImage and it's on Figma's side?

@mmertama
Copy link
Owner

It think that is problem in Figma side, but I have look their API closer if there are something new to handle these issues

@mmertama
Copy link
Owner

Sorry, I have missed some relative fixes from main. I just added them - it would be greatly helpful if your take a latest version. If that wont help, I will look further fixes

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

No branches or pull requests

5 participants