diff --git a/src/dispatch/fastapi.py b/src/dispatch/fastapi.py index 887cc9ed..17eab9fb 100644 --- a/src/dispatch/fastapi.py +++ b/src/dispatch/fastapi.py @@ -21,11 +21,11 @@ def read_root(): import logging import os from datetime import timedelta +from urllib.parse import urlparse import fastapi import fastapi.responses from http_message_signatures import InvalidSignature -from httpx import _urlparse from dispatch.client import Client from dispatch.function import Registry @@ -116,7 +116,7 @@ def __init__( logger.info("configuring Dispatch endpoint %s", endpoint) - parsed_url = _urlparse.urlparse(endpoint) + parsed_url = urlparse(endpoint) if not parsed_url.netloc or not parsed_url.scheme: raise ValueError( f"{endpoint_from} must be a full URL with protocol and domain (e.g., https://example.com)"