Hi,
I ran into a connection issue on a remote appliance after installing the module in a fresh environment/ python-SNS-API install.
I didn't encounter any problem when I was directly connected to a local firewall.
I remember a time when I had some problems on a remote appliance while executing some commands, but can't seem to reproduce this case again, so let's focus on the connection problem.
Current environment
OS : Debian 13 VM / Windows 11 25H2
Python version : 3.13.5 /
Python dependencies version :
Package Version
------------------------- ---------
certifi 2026.2.25
charset-normalizer 3.4.7
colorlog 6.10.1
defusedxml 0.7.1
idna 3.11
packaging 26.0
pygments 2.20.0
pysocks 1.7.1
requests 2.33.1
requests-toolbelt 1.0.0
stormshield-sns-sslclient 1.1.1
urllib3 2.6.3
Steps to reproduce
- Create a venv / use a fresh environment w/o any installed packages
python3 -m venv .venv
uv venv
- Activate your shell with the venv
source .venv/bin/activate
.\.venv\Scripts\activate
- Try to connect to an appliance using this sample script :
from stormshield.sns.sslclient import SSLClient # Import the Lib
# Variable initialisation
host = "X.X.X.X"
port = "443"
user = "admin"
password = "admin"
logged = False
# Basic logic handling
try:
client = SSLClient(
host=host, port=port, user=user, password=password,
sslverifyhost=False, sslverifypeer=False, timeout=10
)
print(f"Successful login to {host}:{port}")
logged = True
except Exception as err:
print(f"Error while connecting to {host}:{port} - {type(err)} {err}")
if logged:
try:
client.disconnect()
print(f"Successfully disconnected to {host}:{port}")
except Exception as err:
print(f"Error while disconnecting from {host}:{port} - {type(err)} {err}")
Steps to fix issue
Pre-install / pin urllib3 at the version 2.6.1, otherwise it breaks.
urllib3 is a direct dependency of requests, which is why it gets installed and causes me some issues, is also used in the codebase but isn't declared as a dependency in ./setup.py
I didn't take the time to look at the changelog between urllib3==2.6.1 and urllib3==2.6.2, nor the at implementation in the module yet, will do so when I have some time available.
Hi,
I ran into a connection issue on a remote appliance after installing the module in a fresh environment/ python-SNS-API install.
I didn't encounter any problem when I was directly connected to a local firewall.
I remember a time when I had some problems on a remote appliance while executing some commands, but can't seem to reproduce this case again, so let's focus on the connection problem.
Current environment
OS : Debian 13 VM / Windows 11 25H2
Python version : 3.13.5 /
Python dependencies version :
Steps to reproduce
Steps to fix issue
Pre-install / pin
urllib3at the version 2.6.1, otherwise it breaks.urllib3is a direct dependency of requests, which is why it gets installed and causes me some issues, is also used in the codebase but isn't declared as a dependency in./setup.pyI didn't take the time to look at the changelog between
urllib3==2.6.1andurllib3==2.6.2, nor the at implementation in the module yet, will do so when I have some time available.