When trying to specify a blob as an input my function isn't called and a .NET internal error is thrown.
Add a blob input to a PHP Azure Function:
...
{
"type": "blob",
"name": "blob",
"path": "test-container/testblob",
"connection": "storage_STORAGE",
"direction": "in"
}
...
The blob is available using getenv('<name>');
Trying to run the function causes the following message to appear in the logs:
2016-10-20T20:24:52.380 Exception while executing function: Functions.FunctionName. mscorlib: Value cannot be null.
Parameter name: destination.
I tried populating the file with some data (just in case it didn't support empty files) and this didn't help either.
None at the moment. Removing the script changes nothing, which means it isn't a script error as it's not even calling it.
As an aside, it's also impossible to have a non-existent blob as an input, which would be useful in the case that the function might not _need_ the blob to function or perhaps creates it for use in later invocations (is this a separate issue?).
The following error is thrown in that case:
2016-10-20T20:30:15.537 Exception while executing function: Functions.FunctionName. Microsoft.Azure.WebJobs.Script: Object reference not set to an instance of an object.
@pragnagopa Please investigate and see if you can find a quick workaround. Talk to @fabiocav if you have questions.
I can repro this. Will investigate further.
Found the issue. Processing input binding that comes in as stream throws null reference exception at ConvertStreamToValue.