Skip to content

Commit

Permalink
Merge pull request #11599 from eset-enterprise-integration/eset-prote…
Browse files Browse the repository at this point in the history
…ct-platform-solution-3.0.0-change-handling-of-missing-endpoint

Change handling of missing endpoint in solution function.
  • Loading branch information
v-prasadboke authored Dec 26, 2024
2 parents 8d43618 + 79eb8db commit da5f6f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

from aiohttp import ClientSession
from aiohttp.client_exceptions import ClientResponseError
from cryptography.fernet import Fernet, InvalidToken
from pydantic import ValidationError

from azure.core.exceptions import HttpResponseError, ServiceRequestError
from azure.data.tables import TableServiceClient
from azure.identity.aio import DefaultAzureCredential
from azure.monitor.ingestion.aio import LogsIngestionClient
from cryptography.fernet import Fernet, InvalidToken
from pydantic import ValidationError

from integration.exceptions import (
AuthenticationException,
InvalidCredentialsException,
Expand Down Expand Up @@ -53,6 +53,9 @@ async def send_request(
except ClientResponseError as e:
if e.status in [400, 401, 403]:
raise AuthenticationException(status=e.status, message=e.message)
if e.status == 404:
logging.info(f"Endpoint not found.")
return None

retries += 1
logging.error(
Expand Down

0 comments on commit da5f6f4

Please sign in to comment.