Skip to content

Conversation

@odesenfans
Copy link
Contributor

Problem: the Python SDK does not check environment variables when configuring the API client and VM cache objects like the previous implementation did.

Solution: pass the correct configuration explicitly when constructing these objects in the FastAPI example.

Problem: the Python SDK does not check environment variables when
configuring the API client and VM cache objects like the previous
implementation did.

Solution: pass the correct configuration explicitly when constructing
these objects in the FastAPI example.
cache = VmCache()
cache = VmCache(
session=aiohttp.ClientSession(
connector=aiohttp.UnixConnector(path=os.environ["ALEPH_API_UNIX_SOCKET"])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user of the SDK should not have to worry about that, the same code should work without a change on the developer's system and inside a microvm.

@hoh
Copy link
Member

hoh commented Jul 10, 2023

This has been solved in the SDK, and a new version of the SDK should be used.

@odesenfans
Copy link
Contributor Author

Replaced by #371.

@odesenfans odesenfans closed this Jul 14, 2023
@Psycojoker Psycojoker deleted the od-fix-status-checks-fastapi branch July 24, 2024 15:44
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.

3 participants