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
The error obviously is not the fault of mobileraker but rather of the modified moonraker implementation, so what I would like to know is that is wrong with the JSON it sends so that I can fix it on the CFW side.
Checklist
To help us diagnose the issue, please ensure you've completed the following steps:
Provided a clear bug description.
Listed detailed steps to reproduce the issue.
Described the expected behavior.
Included the Mobileraker version you are using.
The text was updated successfully, but these errors were encountered:
The error obviously is not the fault of mobileraker but rather of the modified moonraker implementation, so what I would like to know is that is wrong with the JSON it sends so that I can fix it on the CFW side.
Hey,
so your json contains "bed_mesh \"default\"": {}, which is causing the issue.
Default Klipper only allows a single bed_mesh to be configured; however, your setup allows multiple, which causes an issue with mobileraker's auto-mapping function as it tries to call the _updateBedMesh method with the identifier default, which is not supported.
Bug Report
Description
Connecting the printer gives error on loading the dashboard. Console and other sections work correctly.
Steps to Reproduce
Expected Behavior
Dashboard loads
Version Information
Debug Logs
Exception:
NoSuchMethodError: Closure call with mismatched arguments: function 'PrinterBuilder._updateBedMesh'
Receiver: Closure: (Map<String, dynamic>, PrinterBuilder) => PrinterBuilder from Function '_updateBedMesh@855022109': static.
Tried calling: PrinterBuilder._updateBedMesh(""default"", _Map len:0, Instance of 'PrinterBuilder')
Found: PrinterBuilder._updateBedMesh(Map<String, dynamic>, PrinterBuilder) => PrinterBuilder
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38)
#1 _objectNoSuchMethod (dart:core-patch/object_patch.dart:85)
#2 PrinterBuilder.partialUpdateField (package:common/data/dto/machine/printer_builder.dart:219)
#3 PrinterService._parseObjectType (package:common/service/moonraker/printer_service.dart:530)
#4 PrinterService._temperatureStore. (package:common/service/moonraker/printer_service.dart:484)
#5 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#6 PrinterService._parseQueriedObjects (package:common/service/moonraker/printer_service.dart:545)
#7 PrinterService._printerObjectsQuery (package:common/service/moonraker/printer_service.dart:569)
#8 PrinterService.refreshPrinter (package:common/service/moonraker/printer_service.dart:172)
Failed-Key: bed_mesh "default"
Raw JSON:
Additional Context
The printer is an Anycubic Kobra 3 running custom firmware (https://github.com/utkabobr/DuckPro-Kobra3 and https://github.com/utkabobr/moonraker/tree/duckpro) to enable mobileraker on the heavily modified klipper implementation it has.
The error obviously is not the fault of mobileraker but rather of the modified moonraker implementation, so what I would like to know is that is wrong with the JSON it sends so that I can fix it on the CFW side.
Checklist
To help us diagnose the issue, please ensure you've completed the following steps:
The text was updated successfully, but these errors were encountered: