Errors using Azure Function App

RandomJargon

New member
Joined
Sep 9, 2022
Messages
4
Programming Experience
10+
I am using Azure Storage Queue. I have a Function App that is Queue-triggered.

However, I am getting the following error:

Executed 'ProcessOrders' (Failed, Id=[some long id], Duration=1443ms)
System.Private.CoreLib: Exception while execution function: ProcessOrders. Microsoft.Azure.Storage.Common: One of the query parameters specified in the request URI is outside the permissible range.

Does anyone have experience with this?
 
Without seeing your code, it is kind of hard to guess what maybe causing it beyond what the error message is reporting.
 
Hello, I was debugging and traced the error to the below code:

C#:
  CloudQueueMessage cloudQueueMessage = _cloudQueue.GetMessages(messageCount, timeSpan, queueRequestOptions,
                operationContext);

Where _cloudQueue is of type Microsoft.Azure.Storage.Queue.CloudQueue.

messageCount = 1;
timeSpan = 00:00:00
queueRequestOptions and operationContext are null
 
Perhaps a visibility timespan of zero is not valid?
 
Solution
If you look closely at the parameter types, it looks like that parameter is nullable, so you could have just passed in null. I assume that it defaults to some good value. The documentation was not very forthcoming.
 
Back
Top Bottom