b0eeb3a733bf4b98afbbb3b7df55c090.log 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. | return await self.app(scope, receive, send)
  2. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3. | File "/usr/local/lib/python3.13/site-packages/fastapi/applications.py", line 1159, in __call__
  4. | await super().__call__(scope, receive, send)
  5. | File "/usr/local/lib/python3.13/site-packages/starlette/applications.py", line 96, in __call__
  6. | await self.middleware_stack(scope, receive, send)
  7. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 186, in __call__
  8. | raise exc
  9. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
  10. | await self.app(scope, receive, _send)
  11. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 197, in __call__
  12. | response = await self.dispatch_func(request, call_next)
  13. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  14. | File "/app/backend/app/main.py", line 13132, in trace_id_middleware
  15. | response = await call_next(request)
  16. | ^^^^^^^^^^^^^^^^^^^^^^^^
  17. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in call_next
  18. | raise app_exc from app_exc.__cause__ or app_exc.__context__
  19. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 149, in coro
  20. | await self.app(scope, receive_or_disconnect, send_no_error)
  21. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 197, in __call__
  22. | response = await self.dispatch_func(request, call_next)
  23. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. | File "/app/backend/app/main.py", line 13006, in auth_middleware
  25. | return await call_next(request)
  26. | ^^^^^^^^^^^^^^^^^^^^^^^^
  27. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in call_next
  28. | raise app_exc from app_exc.__cause__ or app_exc.__context__
  29. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 149, in coro
  30. | await self.app(scope, receive_or_disconnect, send_no_error)
  31. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 197, in __call__
  32. | response = await self.dispatch_func(request, call_next)
  33. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  34. | File "/app/backend/app/main.py", line 12850, in security_headers_middleware
  35. | response = await call_next(request)
  36. | ^^^^^^^^^^^^^^^^^^^^^^^^
  37. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in call_next
  38. | raise app_exc from app_exc.__cause__ or app_exc.__context__
  39. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 149, in coro
  40. | await self.app(scope, receive_or_disconnect, send_no_error)
  41. | File "/app/backend/app/core/response_redaction.py", line 84, in __call__
  42. | await self.app(scope, receive, masking_send)
  43. | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
  44. | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  45. | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  46. | raise exc
  47. | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  48. | await app(scope, receive, sender)
  49. | File "/usr/local/lib/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
  50. | await self.app(scope, receive, send)
  51. | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 676, in __call__
  52. | await self.middleware_stack(scope, receive, send)
  53. | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 697, in app
  54. | await route.handle(scope, receive, send)
  55. | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 282, in handle
  56. | await self.app(scope, receive, send)
  57. | File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 134, in app
  58. | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  59. | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  60. | raise exc
  61. | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  62. | await app(scope, receive, sender)
  63. | File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 120, in app
  64. | response = await f(request)
  65. | ^^^^^^^^^^^^^^^^
  66. | File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 674, in app
  67. | raw_response = await run_endpoint_function(
  68. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  69. | ...<3 lines>...
  70. | )
  71. | ^
  72. | File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
  73. | return await dependant.call(**values)
  74. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  75. | File "/app/backend/app/api/routes/cloud.py", line 609, in get_slicer_settings
  76. | private_settings = type_data.get("private", [])
  77. | ^^^^^^^^^^^^^
  78. | AttributeError: 'NoneType' object has no attribute 'get'
  79. +------------------------------------
  80. The above exception was the direct cause of the following exception:
  81. Traceback (most recent call last):
  82. File "/usr/local/lib/python3.13/site-packages/uvicorn/protocols/http/httptools_impl.py", line 422, in run_asgi
  83. result = await app( # type: ignore[func-returns-value]
  84. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  85. self.scope, self.receive, self.send
  86. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  87. )
  88. ^
  89. File "/usr/local/lib/python3.13/site-packages/uvicorn/middleware/proxy_headers.py", line 63, in __call__
  90. return await self.app(scope, receive, send)
  91. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  92. File "/usr/local/lib/python3.13/site-packages/fastapi/applications.py", line 1159, in __call__
  93. await super().__call__(scope, receive, send)
  94. File "/usr/local/lib/python3.13/site-packages/starlette/applications.py", line 96, in __call__
  95. await self.middleware_stack(scope, receive, send)
  96. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 186, in __call__
  97. raise exc
  98. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 164, in __call__
  99. await self.app(scope, receive, _send)
  100. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 197, in __call__
  101. response = await self.dispatch_func(request, call_next)
  102. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  103. File "/app/backend/app/main.py", line 13132, in trace_id_middleware
  104. response = await call_next(request)
  105. ^^^^^^^^^^^^^^^^^^^^^^^^
  106. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in call_next
  107. raise app_exc from app_exc.__cause__ or app_exc.__context__
  108. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 149, in coro
  109. await self.app(scope, receive_or_disconnect, send_no_error)
  110. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 197, in __call__
  111. response = await self.dispatch_func(request, call_next)
  112. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  113. File "/app/backend/app/main.py", line 13006, in auth_middleware
  114. return await call_next(request)
  115. ^^^^^^^^^^^^^^^^^^^^^^^^
  116. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in call_next
  117. raise app_exc from app_exc.__cause__ or app_exc.__context__
  118. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 149, in coro
  119. await self.app(scope, receive_or_disconnect, send_no_error)
  120. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 197, in __call__
  121. response = await self.dispatch_func(request, call_next)
  122. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  123. File "/app/backend/app/main.py", line 12850, in security_headers_middleware
  124. response = await call_next(request)
  125. ^^^^^^^^^^^^^^^^^^^^^^^^
  126. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 173, in call_next
  127. raise app_exc from app_exc.__cause__ or app_exc.__context__
  128. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 149, in coro
  129. await self.app(scope, receive_or_disconnect, send_no_error)
  130. File "/app/backend/app/core/response_redaction.py", line 84, in __call__
  131. await self.app(scope, receive, masking_send)
  132. File "/usr/local/lib/python3.13/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
  133. await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  134. File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  135. raise exc
  136. File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  137. await app(scope, receive, sender)
  138. File "/usr/local/lib/python3.13/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
  139. await self.app(scope, receive, send)
  140. File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 676, in __call__
  141. await self.middleware_stack(scope, receive, send)
  142. File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 697, in app
  143. await route.handle(scope, receive, send)
  144. File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 282, in handle
  145. await self.app(scope, receive, send)
  146. File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 134, in app
  147. await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  148. File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  149. raise exc
  150. File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
  151. await app(scope, receive, sender)
  152. File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 120, in app
  153. response = await f(request)
  154. ^^^^^^^^^^^^^^^^
  155. File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 674, in app
  156. raw_response = await run_endpoint_function(
  157. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  158. ...<3 lines>...
  159. )
  160. ^
  161. File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
  162. return await dependant.call(**values)
  163. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  164. File "/app/backend/app/api/routes/cloud.py", line 609, in get_slicer_settings
  165. private_settings = type_data.get("private", [])
  166. ^^^^^^^^^^^^^
  167. AttributeError: 'NoneType' object has no attribute 'get'
  168. 2026-11-17 13:30:29,958 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Found xcam inside print data: {'allow_skip_parts': False, 'buildplate_marker_detector': False, 'cfg': 8088999, 'first_layer_inspector': True, 'halt_print_sensitivity': 'medium', 'print_halt': True, 'printing_monitor': True, 'spaghetti_detector': True}
  169. 2026-11-17 13:30:29,958 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Parsing xcam data - all fields: ['allow_skip_parts', 'buildplate_marker_detector', 'cfg', 'first_layer_inspector', 'halt_print_sensitivity', 'print_halt', 'printing_monitor', 'spaghetti_detector']
  170. 2026-11-17 13:30:29,959 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] xcam cfg bitmask: 8088999 (binary: 0b11110110110110110100111)
  171. 2026-11-17 13:30:29,959 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Received gcode_state: FINISH, gcode_file: /data/Metadata/plate_1.gcode, subtask_name: SUPORTE_CONTROLE_XBOX_GTA_VI_plate_1
  172. 2026-11-17 13:30:29,960 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] ams_extruder_map: {'0': 0}
  173. 2026-11-17 13:30:29,960 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Received command response: push_status
  174. 2026-11-17 13:30:29,961 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] HMS data received: []
  175. 2026-11-17 13:30:29,961 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] lights_report: [{'mode': 'off', 'node': 'chamber_light'}, {'mode': 'flashing', 'node': 'work_light'}]
  176. 2026-11-17 13:30:29,961 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] MQTT mapping field: [1, 3, 0, 2]
  177. 2026-11-17 13:30:29,962 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] gcode_state: FINISH -> FINISH, file: /data/Metadata/plate_1.gcode, subtask: SUPORTE_CONTROLE_XBOX_GTA_VI_plate_1
  178. 2026-11-17 13:30:31,010 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Found xcam inside print data: {'allow_skip_parts': False, 'buildplate_marker_detector': False, 'cfg': 8088999, 'first_layer_inspector': True, 'halt_print_sensitivity': 'medium', 'print_halt': True, 'printing_monitor': True, 'spaghetti_detector': True}
  179. 2026-11-17 13:30:31,011 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Parsing xcam data - all fields: ['allow_skip_parts', 'buildplate_marker_detector', 'cfg', 'first_layer_inspector', 'halt_print_sensitivity', 'print_halt', 'printing_monitor', 'spaghetti_detector']
  180. 2026-11-17 13:30:31,011 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] xcam cfg bitmask: 8088999 (binary: 0b11110110110110110100111)
  181. 2026-11-17 13:30:31,011 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Received gcode_state: FINISH, gcode_file: /data/Metadata/plate_1.gcode, subtask_name: SUPORTE_CONTROLE_XBOX_GTA_VI_plate_1
  182. 2026-11-17 13:30:31,012 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] ams_extruder_map: {'0': 0}
  183. 2026-11-17 13:30:31,012 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Received command response: push_status
  184. 2026-11-17 13:30:31,013 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] HMS data received: []
  185. 2026-11-17 13:30:31,013 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] lights_report: [{'mode': 'off', 'node': 'chamber_light'}, {'mode': 'flashing', 'node': 'work_light'}]
  186. 2026-11-17 13:30:31,014 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] MQTT mapping field: [1, 3, 0, 2]
  187. 2026-11-17 13:30:31,014 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] gcode_state: FINISH -> FINISH, file: /data/Metadata/plate_1.gcode, subtask: SUPORTE_CONTROLE_XBOX_GTA_VI_plate_1
  188. 2026-11-17 13:30:31,230 INFO [backend.app.api.routes.spoolbuddy] [-] SpoolBuddy device offline: sb-9070698f2360
  189. 2026-11-17 13:30:32,267 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Found xcam inside print data: {'allow_skip_parts': False, 'buildplate_marker_detector': False, 'cfg': 8088999, 'first_layer_inspector': True, 'halt_print_sensitivity': 'medium', 'print_halt': True, 'printing_monitor': True, 'spaghetti_detector': True}
  190. 2026-11-17 13:30:32,267 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Parsing xcam data - all fields: ['allow_skip_parts', 'buildplate_marker_detector', 'cfg', 'first_layer_inspector', 'halt_print_sensitivity', 'print_halt', 'printing_monitor', 'spaghetti_detector']
  191. 2026-11-17 13:30:32,267 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] xcam cfg bitmask: 8088999 (binary: 0b11110110110110110100111)
  192. 2026-11-17 13:30:32,267 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Received gcode_state: FINISH, gcode_file: /data/Metadata/plate_1.gcode, subtask_name: SUPORTE_CONTROLE_XBOX_GTA_VI_plate_1
  193. 2026-11-17 13:30:32,267 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] ams_extruder_map: {'0': 0}
  194. 2026-11-17 13:30:32,268 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] Received command response: push_status
  195. 2026-11-17 13:30:32,268 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] HMS data received: []
  196. 2026-11-17 13:30:32,268 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] lights_report: [{'mode': 'off', 'node': 'chamber_light'}, {'mode': 'flashing', 'node': 'work_light'}]
  197. 2026-11-17 13:30:32,268 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] MQTT mapping field: [1, 3, 0, 2]
  198. 2026-11-17 13:30:32,269 DEBUG [backend.app.services.bambu_mqtt] [-] [[SERIAL]] gcode_state: FINISH -> FINISH, file: /data/Metadata/plate_1.gcode, subtask: SUPORTE_CONTROLE_XBOX_GTA_VI_plate_1