From 7160bc317b5dbbd13fb4063b27d9b3543e124a25 Mon Sep 17 00:00:00 2001 From: sumansaurabh Date: Thu, 22 Feb 2024 19:15:04 +0530 Subject: [PATCH] another change --- src/azure_devops.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/azure_devops.py b/src/azure_devops.py index 8a87bf7..3a6f982 100644 --- a/src/azure_devops.py +++ b/src/azure_devops.py @@ -3,7 +3,7 @@ import asyncio import json import traceback - +from pprint import pprint # base_url = f"https://production-gateway.snorkell.ai" base_url = "https://f0a8-2401-4900-1f26-31a3-b5b1-65c0-2624-a5e9.ngrok-free.app" @@ -21,13 +21,13 @@ async def notify_error(message): "repo_details": other_vars, } print("Sending error notification to snorkell ", data) - url: str = f"{base_url}/api/app/github/report/errors" - response = requests.post(url, headers=headers, json=data, timeout=600) - if response.status_code == 200: - message = response.json()["message"] - print(message) - else: - print(response.status_code) + # url: str = f"{base_url}/api/app/github/report/errors" + # response = requests.post(url, headers=headers, json=data, timeout=600) + # if response.status_code == 200: + # message = response.json()["message"] + # print(message) + # else: + # print(response.status_code) @@ -128,6 +128,7 @@ async def main(): "commit_message": os.getenv("COMMIT_MSG"), # Replace with your commit message } + pprint(data) try: is_valid_request = await initiate_documentation_generation(headers, data) if not is_valid_request: