-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
Describe the bug
I noticed the following error when trying to use launch darkly in a fastapi project with code reloading:
TypeError: backoff.on_exception applied to a regular function inside coroutine, this will lead to event loop hiccups. Use backoff.on_exception on coroutines in asynchronous code.
The error is thrown from this line in python-server-sdk.
The command to run uvicorn is here in the base image.
To reproduce
I created a simple repo to reproduce the issue.
git clone https://github.com/dj0nes/ldclient-uvicorn-issue.git
docker-compose up
Expected behavior
The application should run without crashing.
SDK version
launchdarkly-server-sdk~=6.11.1
Language version, developer tools
python 3.7
OS/platform
alpine 3.8
Metadata
Metadata
Assignees
Labels
No labels