Closed Datastore24Kirill closed 2 weeks ago
Ready to provide Chinese number and password
And this is with v2.0.33 of the integration that uses curl_cffi to talk to the Bambu APIs?
`2024-11-08 22:13:18.095 DEBUG (SyncWorker_28) [custom_components.bambu_lab.pybambu] Getting accessToken from Bambu Cloud 2024-11-08 22:13:20.127 ERROR (SyncWorker_28) [custom_components.bambu_lab.pybambu] Login attempt failed with error code: 403 2024-11-08 22:13:20.128 DEBUG (SyncWorker_28) [custom_components.bambu_lab.pybambu] Response: '<!DOCTYPE html>
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
' 2024-11-08 22:13:20.130 ERROR (MainThread) [custom_components.bambu_lab] Failed to connect with error code (403,) 2024-11-08 22:13:29.716 DEBUG (SyncWorker_22) [custom_components.bambu_lab.pybambu] Getting accessToken from Bambu Cloud 2024-11-08 22:13:31.566 ERROR (SyncWorker_22) [custom_components.bambu_lab.pybambu] Login attempt failed with error code: 403 2024-11-08 22:13:31.567 DEBUG (SyncWorker_22) [custom_components.bambu_lab.pybambu] Response: '<!DOCTYPE html>
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
' 2024-11-08 22:13:31.569 ERROR (MainThread) [custom_components.bambu_lab] Failed to connect with error code (403,)`
Are there any restrictions on what browsers you can use in China? I’m wondering if the default browser emulation in curl_cffi is one that would never be seen in China.
I can try with all browsers and replace any user agent
The problem is that authorization by phone is possible in two ways:
We have 52,672 people in the community sitting waiting for a decision
Bambu Handy works, Orca Slicer works, only HA doesn't work
Yes. The problem is that Bambu has deployed cloudflare on all endpoints. And cloudflare is very good at detecting any connection attempts that differ from the normal ones. Since the latest version is working everywhere but China, I'm wondering what is different about the connection there that is not different outside of China.
Are there any browsers that you are not allowed to use in China? The latest attempt is using a library that impersonates browsers more accurately.
Please try: https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.34-dev3
The verification code request was successful, an SMS was sent. Then a short wait and again:
Log: 2024-11-10 16:25:02.136 DEBUG (SyncWorker_1) [custom_components.bambu_lab.pybambu] Getting accessToken from Bambu Cloud 2024-11-10 16:25:02.953 DEBUG (SyncWorker_1) [custom_components.bambu_lab.pybambu] Response: 200 2024-11-10 16:25:02.954 DEBUG (SyncWorker_1) [custom_components.bambu_lab.pybambu] Received verifyCode response 2024-11-10 16:25:58.357 DEBUG (SyncWorker_5) [custom_components.bambu_lab.pybambu] Attempting to connect with provided verification code. 2024-11-10 16:25:58.920 DEBUG (SyncWorker_5) [custom_components.bambu_lab.pybambu] Response: 200 2024-11-10 16:25:58.921 DEBUG (SyncWorker_5) [custom_components.bambu_lab.pybambu] Authentication successful. 2024-11-10 16:25:58.924 DEBUG (MainThread) [custom_components.bambu_lab] async_step_Bambu_Choose_Device 2024-11-10 16:25:58.925 DEBUG (SyncWorker_2) [custom_components.bambu_lab.pybambu] Getting device list from Bambu Cloud 2024-11-10 16:26:08.941 ERROR (MainThread) [custom_components.bambu_lab] Failed to connect with error code ('Failed to perform, curl: (28) Operation timed out after 10000 milliseconds with 0 bytes received. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.',)
Tried again, printers started adding! It would be great to be able to add all printers at once and not one by one.
That would be a complete rewrite unfortunately.
I hope we won! Thank you, I will continue to support your product
I noticed that you can't add more than 4 printers one after another. SMS stop coming, I think you need to make an edition for connecting several printers at the same time, and not one by one.
There seems to be some throttling going on - the last received number in the email code verification scenario seems to last a while - seemingly more than 5 minutes. Maybe that's true of the sms code too? I can see if I can re-use credentials from another instance of the integration.
China phone number not working
`2024-11-08 16:07:28.285 DEBUG (SyncWorker_6) [custom_components.bambu_lab.pybambu] login() 2024-11-08 16:07:28.286 DEBUG (SyncWorker_6) [custom_components.bambu_lab.pybambu] Getting accessToken from Bambu Cloud 2024-11-08 16:07:29.113 ERROR (SyncWorker_6) [custom_components.bambu_lab.pybambu] Login attempt failed with error code: 403 2024-11-08 16:07:29.114 DEBUG (SyncWorker_6) [custom_components.bambu_lab.pybambu] Response: '