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

Cura 5.0 - request loop #285

Open
WalkerHype opened this issue Jul 5, 2022 · 0 comments
Open

Cura 5.0 - request loop #285

WalkerHype opened this issue Jul 5, 2022 · 0 comments

Comments

@WalkerHype
Copy link

WalkerHype commented Jul 5, 2022

Hallo! First, your Plugin is great, and I love it! It makes life so much easier. But after switching to Cura 5.0 I get a request loop:

  • first connect to Octoprint didn't show up --> Reinstalling the Plugin fixed the Issue

  • either it auto discovers the octoprint instance or I'll add it manually + add the API and push request

  • request opens up in octoprint and I accept , but it's still waiting for a response and stays there
    grafik

  • if i type http://192.168.2.109/api/printer?apikey=myAPI i get that window
    grafik

What did i try? Reinstalling and removing the octoprint instance. Upping up the self._settings_reply, to 60000 (line#360)
Restarted the Pi and reinstalled the plugin multiple times.

oh right I'm running octoprint V1.7.3

and those are my cura.logs:

2022-07-05 19:12:02,097 - DEBUG - [JobQueueWorker [1]] cura.Machines.ContainerTree.run [185]: All MachineNode loading completed
2022-07-05 19:12:06,246 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/resources/qml/MainWindow/ApplicationMenu.qml:53:9: QML ViewMenu: Binding loop detected for property "width"
2022-07-05 19:12:06,246 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/resources/qml/MainWindow/ApplicationMenu.qml:53:9: QML ViewMenu: Binding loop detected for property "width"
2022-07-05 19:12:10,827 - WARNING - [MainThread] LocalContainerProvider.LocalContainerProvider.saveContainer [135]: Dirty container [None] is not saved because the resource type is unknown in ContainerRegistry
2022-07-05 19:12:10,831 - DEBUG - [MainThread] cura.AutoSave._onTimeout [64]: Autosaving preferences, instances and profiles took 0.007871150970458984 seconds
2022-07-05 19:12:20,905 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._21008] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: octopi._octoprint._tcp.local
2022-07-05 19:12:20,908 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot call method 'getId' of undefined
2022-07-05 19:12:20,937 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._21008] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: Ender._octoprint._tcp.local
2022-07-05 19:12:21,128 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:12:21,629 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:369: TypeError: Cannot call method 'getId' of undefined
2022-07-05 19:12:23,036 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction.testApiKey [345]: Trying to access OctoPrint instance at http://192.168.2.109:80/ with the provided API key.
2022-07-05 19:12:24,255 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [688]: API key accepted by OctoPrint.
2022-07-05 19:12:24,256 - DEBUG - [MainThread] cura.PrinterOutput.NetworkedPrinterOutputDevice._createNetworkManager [323]: Creating network manager
2022-07-05 19:12:30,904 - DEBUG - [MainThread] cura.AutoSave._onTimeout [64]: Autosaving preferences, instances and profiles took 0.014400482177734375 seconds
2022-07-05 19:12:43,868 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:12:43,948 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._22280] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: octopi._octoprint._tcp.local
2022-07-05 19:12:43,951 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:12:43,971 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._22280] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: Ender._octoprint._tcp.local
2022-07-05 19:12:43,974 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:12:44,474 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:369: TypeError: Cannot call method 'getId' of undefined
2022-07-05 19:12:45,762 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction.testApiKey [345]: Trying to access OctoPrint instance at http://192.168.2.109:80/ with the provided API key.
2022-07-05 19:12:46,970 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [688]: API key accepted by OctoPrint.
2022-07-05 19:12:46,971 - DEBUG - [MainThread] cura.PrinterOutput.NetworkedPrinterOutputDevice._createNetworkManager [323]: Creating network manager
2022-07-05 19:12:47,093 - WARNING - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [616]: Start polling for AppKeys decision
2022-07-05 19:12:51,294 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [654]: AppKey granted
2022-07-05 19:12:51,797 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction.testApiKey [345]: Trying to access OctoPrint instance at http://192.168.2.109:80/ with the provided API key.
2022-07-05 19:12:53,003 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [688]: API key accepted by OctoPrint.
2022-07-05 19:13:00,825 - DEBUG - [MainThread] cura.OAuth2.AuthorizationHelpers.getAccessTokenUsingRefreshToken [64]: Refreshing the access token for [https://account.ultimaker.com]
2022-07-05 19:13:00,826 - DEBUG - [MainThread] cura.OAuth2.AuthorizationService.refreshAccessToken [174]: Was already busy refreshing token. Do not start a new request.
2022-07-05 19:13:00,874 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:13:00,916 - DEBUG - [MainThread] cura.OAuth2.AuthorizationService._storeAuthData [289]: Attempting to store the auth data for [https://account.ultimaker.com]
2022-07-05 19:13:10,925 - DEBUG - [MainThread] cura.AutoSave._onTimeout [64]: Autosaving preferences, instances and profiles took 0.007440090179443359 seconds
2022-07-05 19:14:00,994 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:15:01,075 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:16:02,672 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:16:22,089 - WARNING - [MainThread] UM.Qt.Bindings.Theme.getColor [108]: No color primary_text_hover defined in Theme
2022-07-05 19:16:32,688 - INFO - [MainThread] UM.PackageManager.removePackage [540]: Removing package [OrientationPlugin]
2022-07-05 19:16:32,689 - INFO - [MainThread] UM.PackageManager._saveManagementData [274]: Package management file C:\Users\wollk\AppData\Roaming\cura\5.0\packages.json was saved
2022-07-05 19:16:32,959 - DEBUG - [MainThread] UM.PackageManager.getPackageLicense [696]: Found potential license file '/files/plugins/OrientationPlugin/LICENSE'
2022-07-05 19:16:32,960 - DEBUG - [MainThread] UM.PackageManager.getPackageInfo [668]: Found potential package.json file '/package.json'
2022-07-05 19:16:32,961 - INFO - [MainThread] UM.PackageManager.installPackage [505]: Package [OrientationPlugin] version [3.7.1] is scheduled to be installed.
2022-07-05 19:16:32,962 - INFO - [MainThread] UM.PackageManager._saveManagementData [274]: Package management file C:\Users\wollk\AppData\Roaming\cura\5.0\packages.json was saved
2022-07-05 19:16:33,003 - DEBUG - [MainThread] Marketplace.CloudSync.CloudApiClient._subscribe [44]: Subscribing to OrientationPlugin
2022-07-05 19:16:39,269 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/plugins/Marketplace/resources/qml/PackageDetails.qml:34: TypeError: Cannot read property 'AlignVCenter' of undefined
2022-07-05 19:16:39,270 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/plugins/Marketplace/resources/qml/PackageDetails.qml:50: TypeError: Cannot read property 'AlignVCenter' of undefined
2022-07-05 19:16:39,270 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/plugins/Marketplace/resources/qml/PackageCardHeader.qml:70:5: QML ColumnLayout: Qt Quick Layouts: Polish loop detected. Aborting after two iterations.
2022-07-05 19:17:02,771 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:17:29,758 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/resources/qml/MainWindow/ApplicationMenu.qml:53:9: QML ViewMenu: Binding loop detected for property "width"
2022-07-05 19:17:29,759 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Program Files/Ultimaker Cura 5.0.0/share/cura/resources/qml/MainWindow/ApplicationMenu.qml:53:9: QML ViewMenu: Binding loop detected for property "width"
2022-07-05 19:18:03,819 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:19:03,938 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:20:04,068 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:20:09,551 - DEBUG - [MainThread] UM.TaskManagement.HttpRequestManager._onRequestError [369]: request[23ca9d7f][get][PyQt6.QtCore.QUrl('')][timeout=None][no-data] got an QNetworkReplyError Protocol "" is unknown. The server returned: b''
2022-07-05 19:20:09,552 - DEBUG - [MainThread] Marketplace.RemotePackageList._onError [142]: Cancelled request for packages.
2022-07-05 19:20:16,658 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:20:16,700 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._15368] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: Ender._octoprint._tcp.local
2022-07-05 19:20:16,703 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:20:16,763 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._15368] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: octopi._octoprint._tcp.local
2022-07-05 19:20:16,765 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:20:17,266 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:369: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:20:18,396 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction.testApiKey [345]: Trying to access OctoPrint instance at http://192.168.2.109:80/ with the provided API key.
2022-07-05 19:20:19,598 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [688]: API key accepted by OctoPrint.
2022-07-05 19:20:19,601 - DEBUG - [MainThread] cura.PrinterOutput.NetworkedPrinterOutputDevice._createNetworkManager [323]: Creating network manager
2022-07-05 19:20:19,637 - WARNING - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [616]: Start polling for AppKeys decision
2022-07-05 19:20:24,683 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [654]: AppKey granted
2022-07-05 19:21:04,168 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:22:05,590 - DEBUG - [MainThread] cura.OAuth2.AuthorizationHelpers.getAccessTokenUsingRefreshToken [64]: Refreshing the access token for [https://account.ultimaker.com]
2022-07-05 19:22:05,591 - DEBUG - [MainThread] cura.OAuth2.AuthorizationService.refreshAccessToken [174]: Was already busy refreshing token. Do not start a new request.
2022-07-05 19:22:05,688 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:22:05,779 - DEBUG - [MainThread] cura.OAuth2.AuthorizationService._storeAuthData [289]: Attempting to store the auth data for [https://account.ultimaker.com]
2022-07-05 19:22:15,790 - DEBUG - [MainThread] cura.AutoSave._onTimeout [64]: Autosaving preferences, instances and profiles took 0.013860225677490234 seconds
2022-07-05 19:23:05,788 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:24:05,915 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:25:07,379 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:26:07,614 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:26:17,707 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:26:17,730 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._16768] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: octopi._octoprint._tcp.local
2022-07-05 19:26:17,733 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:26:17,765 - DEBUG - [zeroconf-ServiceBrowser__octoprint._tcp.local._16768] OctoPrintPlugin.OctoPrintOutputDevicePlugin._onServiceChanged [367]: Bonjour service added: Ender._octoprint._tcp.local
2022-07-05 19:26:17,768 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:619: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:26:18,270 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [431]: file:///C:/Users/wollk/AppData/Roaming/cura/5.0/plugins/OctoPrintPlugin/OctoPrintPlugin/qml/DiscoverOctoPrintAction.qml:369: TypeError: Cannot read property 'getId' of undefined
2022-07-05 19:26:19,284 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction.testApiKey [345]: Trying to access OctoPrint instance at http://192.168.2.109:80/ with the provided API key.
2022-07-05 19:26:20,502 - DEBUG - [MainThread] OctoPrintPlugin.DiscoverOctoPrintAction._onRequestFinished [688]: API key accepted by OctoPrint.
2022-07-05 19:26:20,505 - DEBUG - [MainThread] cura.PrinterOutput.NetworkedPrinterOutputDevice._createNetworkManager [323]: Creating network manager
2022-07-05 19:27:07,686 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:28:08,171 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:29:08,209 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:30:08,302 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:31:08,688 - DEBUG - [MainThread] cura.OAuth2.AuthorizationHelpers.getAccessTokenUsingRefreshToken [64]: Refreshing the access token for [https://account.ultimaker.com]
2022-07-05 19:31:08,694 - DEBUG - [MainThread] cura.OAuth2.AuthorizationService.refreshAccessToken [174]: Was already busy refreshing token. Do not start a new request.
2022-07-05 19:31:08,779 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:31:08,892 - DEBUG - [MainThread] cura.OAuth2.AuthorizationService._storeAuthData [289]: Attempting to store the auth data for [https://account.ultimaker.com]
2022-07-05 19:31:18,901 - DEBUG - [MainThread] cura.AutoSave._onTimeout [64]: Autosaving preferences, instances and profiles took 0.014478445053100586 seconds
2022-07-05 19:32:09,046 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:33:10,284 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.
2022-07-05 19:34:10,556 - DEBUG - [MainThread] UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager._onGetRemoteClustersFinished [162]: Synced cloud printers with account.

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

1 participant