yym68686 commited on
Commit
db534e0
·
1 Parent(s): aa9bf57

🐛 Bug: Fix the bug where Vercel fails to start successfully.

Browse files
Files changed (1) hide show
  1. utils.py +2 -1
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
- response = await app.state.client.get(config_url)
 
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)