Skip to content

fix: Pydantic v2 errors on unknown env vars #216

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

RezaRahemtola
Copy link
Contributor

@RezaRahemtola RezaRahemtola commented Apr 18, 2025

Without the fix, any variable present in a .env file where the SDK is used (including the CLI, and products using the CLI, like the Web3 Hosting GitHub Action) throws an error that make it completely unusable:
image

With the fix, it ignores those variables:
image

This is due to Pydantic v2 being more strict when unexpected fields are given, we have to explicitly ignore them.

@olethanh olethanh merged commit c676a99 into aleph-im:main Apr 22, 2025
22 checks passed
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