Skip to content

Use cipher-workaround session for get_station_list - #153

Closed
GeorgeS311578 wants to merge 3 commits into
seisman:mainfrom
GeorgeS311578:fix/station-list-cipher
Closed

GeorgeS311578 wants to merge 3 commits into
seisman:mainfrom
GeorgeS311578:fix/station-list-cipher

Conversation

@GeorgeS311578

Copy link
Copy Markdown
Contributor

get_station_list fetched _STATION_INFO with a bare requests.get, so it
crashed with SSLError: DH_KEY_TOO_SMALL on modern OpenSSL (e.g. macOS
runners — see the red Tests #338 log on main).

It now reuses the logged-in session, which already mounts
AddedCipherAdapter, or a throwaway session with the same workaround
when used without login.

Verified live without an account: get_station_list("0101") returns
797 stations.

@seisman

seisman commented Sep 25, 2026

Copy link
Copy Markdown
Owner

I'm not fully understand the issue, although the AddedCipherAdapter workaround was added by me.

It seems the CI runs passed on Linux for Python 3.10 and 3.14, and on macOS for Python 3.14, but fails on macOS with Python 3.10. Perhaps the easiest solution is bumping the minimum required Python version to 3.11 or later?

@seisman

seisman commented Sep 25, 2026

Copy link
Copy Markdown
Owner

The CI passes on Linux/macOS with Python 3.11. In PR #155, I've bumped the minimum required version to Python 3.11, so the workaround in this PR is no longer needed.

@GeorgeS311578

Copy link
Copy Markdown
Contributor Author

Makes sense — if 3.10 is dropped, the workaround is unnecessary.
Feel free to close this one; glad the macOS failure led to the
version bump. Thanks for explaining

@seisman seisman closed this Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants