Skip to content

Session Reuse Required Error #47

Open
@jneilliii

Description

@jneilliii
  • Package Name: iot-ftps-client
  • Package Version: 1.1.1
  • Operating System: Windows 10 64bit
  • Python Version: 3.10

Describe the bug
Connecting to Bambu Labs X1C ftps server, which appears to be running vsFTPd 3.0.3 based on the welcome message, get an error unexpected exception occurred: 522 SSL connection failed: session reuse required when attempting to do something simple like ftps_client.list_files("/"). Trying to upload a file I get unexpected exception occurred: EOF occurred in violation of protocol (_ssl.c:2426)

To Reproduce
Steps to reproduce the behavior:

  1. Used this code to connect and attempt to list and upload file.
from iot.ftps.client import IoTFTPSClient

ftps_client = IoTFTPSClient(
    ftps_host="myServerIP",
    ftps_port=990,
    ftps_user="myServerUsername",
    ftps_pass="myServerPass***",
    ssl_implicit=True,
)

ftps_client.list_files("/")

ftps_client.upload_file("C:\\Users\\jneil\Documents\\3D Prints\\PrinterUprades\\OrdBotHadron\\OctoprintRelated\\printer-ws-client\\bambu_local\\test.3mf", "/test.3mf")

Expected behavior
To be able to list and upload files.

Screenshots
image

Additional context
I'm able to connect and list/upload files using filezilla ftp client as described in the link below without issue, so know the login information is correct.

https://forum.bambulab.com/t/we-can-now-connect-to-ftp-on-the-p1p/6464

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions