@Kyle Mann ,
A "400 Bad Request" error when calling an Azure function from a Logic App can occur for various reasons. One common cause is that the trigger or action has a longer name, which may exceed the default character limit for the underlying URI. To resolve this, you can adjust the UrlSegmentMaxCount
and UrlSegmentMaxLength
registry keys on your computer. Here are the steps:Open the Run window and run the regedit
command to open the registry editor.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters.
Find the UrlSegmentMaxCount
and UrlSegmentMaxLength
keys. If they don't exist, you can add them.
Increase the values of these keys to accommodate the longer URIs you are using.
Restart your computer for the changes to take effect.
Additionally, ensure that the function app is correctly configured and that any required headers, such as x-functions-key
, are included if necessary. If the issue persists, you may want to check the function's logs for more details on the failure.
References: