-
Notifications
You must be signed in to change notification settings - Fork 3.3k
A 404 from raise event is inaccurately described as instance not found #30161
Copy link
Copy link
Closed
Azure/azure-functions-durable-python
#435Labels
FunctionsServiceThis issue points to a problem in the service.This issue points to a problem in the service.Service AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Metadata
Metadata
Assignees
Labels
FunctionsServiceThis issue points to a problem in the service.This issue points to a problem in the service.Service AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
The python implementation has a hardcoded error message for a 404 on context.raise_event(...) that says that the instance ID could not be found. Today I noticed however that I'm getting the same error message when using an event name that contains (presumably) illegal characters. My guess is that the python implementation constructs an invalid URL when the event name contains characters such as slashes and/or asterixes and therefore the API returns a 404. The resulting error message is very confusing though.
From looking through the DurableOrchestrationClient code, no sanitizing of input is being performed. That looks to me like a good place to fix this issue, because why wouldn't an event name with special characters be permitted? The HTTP API docs say nothing about what is and isn't a valid event name.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.