Skip to content

Commit 1988b74

Browse files
authored
Merge pull request #162 from dispatchrun/fix-lambda-endpoint
Fix the Lambda handler
2 parents 0a48249 + 5f64a34 commit 1988b74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dispatch/experimental/lambda_handler.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def __init__(
5151
5252
"""
5353

54-
super().__init__(endpoint="not configured", api_key=api_key, api_url=api_url)
54+
# We use a fake endpoint to initialize the base class. The actual endpoint (the Lambda ARN)
55+
# is only known when the handler is invoked.
56+
super().__init__(endpoint="http://lambda", api_key=api_key, api_url=api_url)
5557

5658
def handle(
5759
self, event: str, context: LambdaContext, entrypoint: Optional[str] = None

0 commit comments

Comments
 (0)