Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.8k stars 320 forks source link

Azurite | Durable functions not working properly #1741

Open RamasubbuSK opened 1 year ago

RamasubbuSK commented 1 year ago

Which service(blob, file, queue, table) does this issue concern?

tables

Which version of the Azurite was used?

Version that comes with VS2022 preview. Version#3.19

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

VS2022 preview

What problem was encountered?

[11/2/2022 5:31:09 AM] A ScriptHost error has occurred [11/2/2022 5:31:09 AM] The listener for function 'ActivityFunction' was unable to start. Microsoft.WindowsAzure.Storage: The property 'value' does not exist on type 'devstoreaccount1.Tables'. Make sure to only use property names that are defined by the type. Microsoft.Data.OData: The property 'value' does not exist on type 'devstoreaccount1.Tables'. Make sure to only use property names that are defined by the type. [11/2/2022 5:31:09 AM] The listener for function 'ActivityFunction' was unable to start. Microsoft.WindowsAzure.Storage: The property 'value' does not exist on type 'devstoreaccount1.Tables'. Make sure to only use property names that are defined by the type. Microsoft.Data.OData: The property 'value' does not exist on type 'devstoreaccount1.Tables'. Make sure to only use property names that are defined by the type. [11/2/2022 5:31:09 AM]

Steps to reproduce the issue?

Function works fine when I delete the azurite folder and start the function project. If I miss to delete the folder, I see above error. It is 100% consistent.

Have you found a mitigation/solution?

The only work around I found it, every time before start running the project. I have to kill the azurite process and delete the data folder. Start the Azurite and then run the project.

edwin-huber commented 1 year ago

Hi, was there an update to Azurite or the function SDK since this stopped working? Do you know what changed between the working and not working sates?

RamasubbuSK commented 1 year ago

Code is working with storage emulator, and I have updated my Visual Studio to VS2022 which comes with Azurite. It is not working with Azurite. This is the first time I'm trying the code with Azurite.

smagnetize commented 1 year ago

This happens to me too, in 2022 and 2022 preview. I have v1 Function Apps.

Specifically deleting C:\azurite\__azurite_db_table__.json before each run fixes the error.

[11/11/2022 09:52:31] A ScriptHost error has occurred
[11/11/2022 09:52:31] The listener for function 'Pdf' was unable to start. Microsoft.WindowsAzure.Storage: The property 'value' does not exist on type 'devstoreaccount1.Tables'. Make sure to only use property names that are defined by the type. Microsoft.Data.OData: The property 'value' does not exist on type 'devstoreaccount1.Tables'. Make sure to only use property names that are defined by the type.
nytian commented 11 months ago

Hi, is there any updates or mitigation way for this issue? I have met the same problem for the Durable Functions tests.

edwin-huber commented 11 months ago

Following up with Naiyuan directly on the repro.

brainded commented 6 months ago

+1