Skip to content
Snippets Groups Projects
Commit 7baa74a6 authored by codl's avatar codl
Browse files

fix user-agent on instance availability checks

parent adbd9c3b
No related branches found
No related tags found
No related merge requests found
Pipeline #31855 failed
......@@ -643,7 +643,9 @@ def check_all_remote_instance_availability():
@celery.app.task(name="federation.check_single_remote_instance_availability")
def check_single_remote_instance_availability(domain):
try:
response = requests.get(f"https://{domain.name}/api/v1/instance/nodeinfo/2.0/")
response = session.get_session().get(
f"https://{domain.name}/api/v1/instance/nodeinfo/2.0/"
)
nodeinfo = response.json()
except Exception as e:
logger.info(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment