🐛 Bug: Fix the bug where Vercel fails to start successfully.
Browse files
utils.py
CHANGED
@@ -166,7 +166,8 @@ async def load_config(app=None):
|
|
166 |
config_url = os.environ.get('CONFIG_URL')
|
167 |
if config_url:
|
168 |
try:
|
169 |
-
|
|
|
170 |
# logger.info(f"Fetching config from {response.text}")
|
171 |
response.raise_for_status()
|
172 |
config_data = yaml.load(response.text)
|
|
|
166 |
config_url = os.environ.get('CONFIG_URL')
|
167 |
if config_url:
|
168 |
try:
|
169 |
+
client = app.state.client_manager.get_client(100)
|
170 |
+
response = await client.get(config_url)
|
171 |
# logger.info(f"Fetching config from {response.text}")
|
172 |
response.raise_for_status()
|
173 |
config_data = yaml.load(response.text)
|