У меня есть следующая функция:
public static class FunctionCheckEmail
{
[FunctionName("FunctionCheckEmail")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req,
[Queue("email-message-admin-confirmation", Connection = "StorageConnectionString")]CloudQueue outputQueue,
ExecutionContext context,
ILogger log)
{
log.LogInformation("C# HTTP trigger function processed a request.");
return new AcceptedResult();
}
}
function.json:
{
"generatedBy": "Microsoft.NET.Sdk.Functions-1.0.26",
"configurationSource": "attributes",
"bindings": [
{
"type": "httpTrigger",
"methods": [
"post"
],
"authLevel": "function",
"name": "req"
}
],
"disabled": false,
"scriptFile": "../bin/AzureAppDomainRegistration.dll",
"entryPoint": "AzureAppDomainRegistration.FunctionCheckEmail.Run"
}
host.json:
{
"version": "2.0",
"extensions": {}
}
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true",
"AzureWebJobsSendGridApiKey": "XXXX",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"StorageConnectionString": "DefaultEndpointsProtocol=https;AccountName=domainregistration;AccountKey=XXXX"
}
}
Когда я пытаюсь вызвать эту функцию здесь:
Я получаю Internal server Error
.Что случилось?Я потратил на это половину дня ...