-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Labels
Description
I created an HTTP triggered function with an output binding of type Azure Table Storage. Here is the function.json definition:
{
"scriptFile": "__init__.py",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "$return"
},
{
"type": "table",
"dataType": "string",
"direction": "out",
"name": "table",
"tableName": "commitsTable",
"connection": "AzureWebJobsStorage"
}
]
}
I see the following error when trying to run locally:
Executing 'Functions.PushEvent' (Reason='This function was programmatically called via the host APIs.', Id=a079f757-06a1-4ca0-b2fd-6eb41f4e8953)
[5/6/19 5:38:18 AM] Executed 'Functions.PushEvent' (Failed, Id=a079f757-06a1-4ca0-b2fd-6eb41f4e8953)
[5/6/19 5:38:18 AM] System.Private.CoreLib: Exception while executing function: Functions.PushEvent. System.Private.CoreLib: Result: Failure
[5/6/19 5:38:18 AM] Exception: FunctionLoadError: cannot load the PushEvent function: unknown type for table binding: "table"
[5/6/19 5:38:18 AM] Stack: File "/usr/local/Cellar/azure-functions-core-tools/2.7.1149/workers/python/deps/azure/functions_worker/dispatcher.py", line 232, in _handle__function_load_request
[5/6/19 5:38:18 AM] function_id, func, func_request.metadata)
[5/6/19 5:38:18 AM] File "/usr/local/Cellar/azure-functions-core-tools/2.7.1149/workers/python/deps/azure/functions_worker/functions.py", line 179, in add_function
[5/6/19 5:38:18 AM] f'unknown type for {param.name} binding: "{desc.type}"')
[5/6/19 5:38:18 AM] .
I expected this to work since the issue here - #66 has been closed.