Skip to content

Commit

Permalink
debug: notification timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisCusihuaman committed Dec 2, 2023
1 parent 3bbdebf commit 9061faa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion identity_socializer/services/push_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,11 @@ def _get_snap(snap_id: str, user_id: str) -> Any:
url = "https://api-content-discovery-luiscusihuaman.cloud.okteto.net"
print(f"snap_id: {snap_id} user_id: {user_id}")
try:
timeout = httpx.Timeout(10.0, read=None)
res = httpx.get(
f"{url}/api/feed/snap/{snap_id}?user_id={user_id}",
headers={'accept': 'application/json'})
verify=False, timeout=timeout,
headers={'accept': 'application/json'})
if res.status_code != 200:
return None
except Exception as e:
Expand Down

0 comments on commit 9061faa

Please sign in to comment.