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

[BUG]: unable to connect to the cloud service on A1 printer #59

Open
penguinpatrol opened this issue Nov 5, 2024 · 21 comments
Open

[BUG]: unable to connect to the cloud service on A1 printer #59

penguinpatrol opened this issue Nov 5, 2024 · 21 comments
Labels
enhancement New feature or request

Comments

@penguinpatrol
Copy link

Describe the Bug
unable to connect to the cloud service on A1 printer i can enter in the login details but the login button doesn't work (there is no response and the auth token does not fill)

Expected Behavior
i expect to be able to log in to the cloud service

Debug Logs

plugin_bambu_printer_serial.log

Screenshots

Printer and Plugin Setting Details

  • Printer model? A1
  • Is your printer connected to Bambu Cloud? yes
  • Is the plugin configured for local access only? it does work locally but i wish to connect it through the cloud service
@jneilliii
Copy link
Owner

jneilliii commented Nov 5, 2024

This is an issue created by Bambu and their new workflow for authentication. It's going to be a while before I implement those changes in the plugin. It's the same issue that has impacted the HA integration as documented in their issue greghesp/ha-bambulab#673, which is what this plugin uses as its underlying worker.

@jneilliii jneilliii added the enhancement New feature or request label Nov 5, 2024
jneilliii added a commit that referenced this issue Nov 9, 2024
* update pybambu module from upstream HA project, groundwork for fixing new cloud authorization process, #59
* potential fix for stuck progress/canceled printing status, #52
jneilliii added a commit that referenced this issue Nov 9, 2024
* update pybambu module from upstream HA project, groundwork for fixing new cloud authorization process, #59
* potential fix for stuck progress/canceled printing status, #52
@AJolly
Copy link

AJolly commented Nov 9, 2024

@penguinpatrol if you use HA and install that plugin you can then pull the correct auth token from core.config_entries

@penguinpatrol
Copy link
Author

oh awesome i do use that where will i find the config entry??

@jneilliii
Copy link
Owner

I've started working on the authentication flow within the plugin's settings. Will be available soon once I've been able to test it.

@penguinpatrol
Copy link
Author

penguinpatrol commented Nov 9, 2024

i managed to find it but nothing seems to have changed trying to enter it so hopefully the propper fix will sort it when its released

jneilliii added a commit that referenced this issue Nov 10, 2024
* updates to pybambu module
* update cloud login workflow, #59
@jneilliii
Copy link
Owner

I've just released version 0.1.8rc8 that has an updated login flow for the new verification processes required by Bambu. Enter email/password and press login, then using either 2fa verification code or verification code emailed to the given email address and click verify. If all goes smooth the auth token will be populated and you just click save.

@penguinpatrol
Copy link
Author

penguinpatrol commented Nov 10, 2024

how would i update this? the software update tab shows the plugin as being up to date?

(nevermind just gotr it i didnt realise i had to install from the zip)

@Joelminer-satisfactory
Copy link

In the software update tab select release candidate from the release channel dropdown for bambu printer, like in the image below.
{3D32EB2C-DC06-46C2-AD4C-CED165E08D75}

@penguinpatrol
Copy link
Author

oh thanks! i am currently installing from the zip

@penguinpatrol
Copy link
Author

got it all connected it seems to be working mostly fine except the prints i hav e done so far (sent through bambu studio) dont seem to register in octoprint (i also cant see any of the files on the sd card in octoprint)
image
image

its registering the ams lite and temp sensors fine just it doest seem to be detecting any active prints

@jneilliii
Copy link
Owner

in terminal tab do you see multiple file list refreshes over and over? when sending files through the cloud the option to cache printing files on the printer is a requirement. make sure that option is enabled on your printer.

@penguinpatrol
Copy link
Author

image
this is what's looping, im not sure if the caching option is enabled so ill make sure it is in a bit!

@penguinpatrol
Copy link
Author

althought i cant seem to find the setting? is it on the printer itself? does it not show while printing?

@jneilliii
Copy link
Owner

I'm OctoPrint's settings enable debug for octoprint.plugins.bambu_printer in the logging section, restart OctoPrint and let's get some detailed logs to troubleshoot. I am assuming you have an SD card in the printer.

@penguinpatrol
Copy link
Author

yeah sd card in the printer and print is currently running

@penguinpatrol
Copy link
Author

plugin_bambu_printer_serial (2).log
i think this is the correct thing?

@jneilliii
Copy link
Owner

jneilliii commented Nov 10, 2024

perfect...

2024-11-10 17:21:42,342 ftplib.error_perm: 530

this seems to be an authentication failed error when trying to retrieve the file list over ftps. you do also have the access code entered in the plugin's settings?

it's possible this is a limitation of A1/P1 devices. I have heard from the development community that once cloud connected some services are no longer available locally to connect to.

@penguinpatrol
Copy link
Author

yeah i have the access code in i know it works locally as i tried that before its just the cloud not registering the current print, i know home assistant bambu connection work fine all of thoes scanners and such are connected.

@penguinpatrol
Copy link
Author

penguinpatrol commented Nov 10, 2024

ah wait i did change the wifi a few hours ago that may jhave something to do with it

edit: i dont think it does the HA plugin is working as normal

@jneilliii
Copy link
Owner

the file list will be generated locally over ftps direct connection to printer, so the IP address and access code must be present, then when the file list is able to be generated the printing status from cloud should be picked up properly.

@penguinpatrol
Copy link
Author

image
its all in and i am pretty sure all correct, i can double check in a few hours when the print is done just to make sure but i dont belive it has changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants