Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3c0f4b3

Browse files
fixed bug
1 parent d418b62 commit 3c0f4b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/main/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,14 @@ async def v1_gateway(request: Request, path: str):
462462
return JSONResponse(content=response, status_code=200, headers={"Content-Type": "application/json"})
463463

464464
app_logger.info(msg="All cached responses not found- Must Be a Slow Day")
465-
for api_url in remote_servers.healthy_server_urls:
465+
for api_url in api_urls:
466466
try:
467467
# 5 minutes timeout on resource fetching from backend - some resources may take very long
468468
response = await requester(api_url=api_url, timeout=9600)
469+
469470
if response and response.get("status", False) and response.get('payload'):
470471
# NOTE, Cache is being set to a ttl of one hour here
472+
471473
await redis_cache.set(key=api_url, value=response, ttl=60 * 60)
472474
return JSONResponse(content=response, status_code=200, headers={"Content-Type": "application/json"})
473475
except httpx.HTTPError as http_err:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /