Skip to content

[SDK Binding - Blob] Output binding does not work with trigger binding using an SDK-type #1362

@liliankasem

Description

@liliankasem

Using an output binding with a trigger bindings whilst binding to an SDK-type (stream/blobClient etc.) leads to an error.

        [Function(nameof(BlobTriggerStreamTest))]
        [BlobOutput("test-output-stream-dotnet-isolated/output.txt")]
        public async Task<string> BlobTriggerStreamTest(
            [BlobTrigger("test-trigger-stream-dotnet-isolated")] Stream stream,
            FunctionContext context)
        {
            using var blobStreamReader = new StreamReader(stream);
            string content = await blobStreamReader.ReadToEndAsync();
            _logger.LogInformation(".NET Blob trigger function processed a blob.\n Content: " + content);
            return content;
        }

Error:

The 'BlobTriggerStreamTest' function is in error: Value cannot be null. (Parameter 'input').

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions