question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DurableTaskStorageException: Value for one of the query parameters specified in the request URI is invalid

See original GitHub issue

We are running in an issue with DTFx. Sometimes (and only in one region where our service is running - WestEurope), when enqueuing a queue message to start an orchestration, the queueing fails because of a bad parameter in the query string.

Sample query: https://mystorage.queue.core.windows.net:443/devcenterjobs-control-00/messages?messagettl=−1

Error and stacktrace:

DurableTask.AzureStorage.Storage.DurableTaskStorageException: Value for one of the query parameters specified in the request URI is invalid. —> Microsoft.WindowsAzure.Storage.StorageException: Value for one of the query parameters specified in the request URI is invalid. at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteAsyncInternal[T](RESTCommand1 cmd, IRetryPolicy policy, OperationContext operationContext, CancellationToken token) at DurableTask.AzureStorage.Storage.AzureStorageClient.WrapFunctionWithReturnType(Func3 storageRequest, OperationContext context, CancellationToken cancellationToken) in //src/DurableTask.AzureStorage/Storage/AzureStorageClient.cs:line 158 at DurableTask.AzureStorage.TimeoutHandler.ExecuteWithTimeout[T](String operationName, String account, AzureStorageOrchestrationServiceSettings settings, Func3 operation, AzureStorageOrchestrationServiceStats stats, String clientRequestId) at DurableTask.AzureStorage.Storage.AzureStorageClient.MakeStorageRequest[T](Func3 storageRequest, String accountName, String operationName, String clientRequestId, Boolean force) in //src/DurableTask.AzureStorage/Storage/AzureStorageClient.cs:line 149

Looking at the code here, the value of the messagettl param should always be -1 (as we are not using NET462). And looking at storage client code, it should append it.

Any help to resolve this issue would be appreciated.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
joeragecommented, Oct 25, 2022

Hi @davidmrdavid, I simply making this assumption because the call made to storage dataplane has a single query parameter: https://mystorage.queue.core.windows.net:443/devcenterjobs-control-00/messages?messagettl=−1

0reactions
jviaucommented, Oct 27, 2022

I believe it is addressed in the newer SDKs.

As for working around this in existing - two things to check:

  1. Is it fixed in newer versions of the deprecated SDK?
  2. If not, we could fix it by pushing a known working culture onto the execution context before calling any storage APIs (and then restoring the previous culture after the call is complete)

@cgillum, I think the SDK upgrade will warrant a major version rev. We may want to consider fixing this in the existing version, just in case the migration from DurableTask.AzureStorage v1 to v2 is not frictionless and some customers are blocked. They may still benefit from this fix in v1. Not saying that is the case, but something to consider.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Blob List "Value for one of the query parameters ...
Azure Blob List "Value for one of the query parameters specified in the request URI is invalid" when using API Management service -...
Read more >
Value for one of the query parameters specified in ...
Value for one of the query parameters specified in the request URI is invalid error when using "without current version" filter #4433.
Read more >
Access Azure Storage Blobs via a browser
I am trying to give a Azure Storage Account Container SAS URL to ... one of the query parameters specified in the request...
Read more >
How to resolve `Value for one of the query parameters ...
The above error indicates one of the query parameters specified on the request URI is Invalid. The issue is likely with the "fileToUpload....
Read more >
Module: Azure::Storage::Common::StorageErrorCodeStrings
Bad Request (400 ) = An invalid value was specified for one of the query parameters in the request URI. "InvalidQueryParameterValue"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found