Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The lock supplied is invalid. Either the lock expired, or the message has already been removed #40

Open
Bakanych opened this issue Aug 10, 2021 · 5 comments

Comments

@Bakanych
Copy link

Bakanych commented Aug 10, 2021

Hi guys,
not sure what I'm doing wrongly, but I just specified AzureServiceBusConnectionString in appsettings.json and ran AzureServiceBusMessageBusTests.
Almost all of them were failed with the similar error message

Error sending work item to worker: The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue, or was received by a different receiver instance.

I had same issues when tried to use the latest nuget package.

Any ideas?

@niemyjski
Copy link
Member

Can you provide more specifics on the message bus instance you created. Size / Features etc..

@Bakanych
Copy link
Author

Bakanych commented Aug 10, 2021

Hi @niemyjski ,
it's pretty standard one:

    "sku": {
        "name": "Standard",
        "tier": "Standard"
    },
    "type": "Microsoft.ServiceBus/Namespaces",
    "location": "West Europe",

ConnectionString looks like this:

Endpoint=sb://<name>.servicebus.windows.net/;SharedAccessKeyName=<keyname>;SharedAccessKey=<key>

Which kind of features can be an issue? I remember I created it using defaults.

@niemyjski
Copy link
Member

Thanks for that, I'm double checked our build as tests should be running as part of the build, but that doesn't seem to be the case after looking :. I updated the test connection string and will run the tests locally. Is there any chance you could look into this?

@Bakanych
Copy link
Author

Sure, I'll help with pleasure. Just let me know how :)

@niemyjski
Copy link
Member

I'd start by debugging the unit tests and figure out why we are getting the lock id error, you may need to clone the foundatio project and locally update project references to step through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants