Comments (24)
Looking closer at this, it seems like #17 might be a fix for the same problem. Is there a timeframe for when that might merge and result in a new docker image?
from azurite.
The changes have been merged into our Dev branch to address this.
We'll merge into Master and release a new update soon. :)
from azurite.
Just hit this too in docker
from azurite.
@edwin-huber I just tried switching to Azurite and immediately ran into this issue. Any idea when the next update will be?
from azurite.
Thanks for reporting this... I'm looking into it...
from azurite.
I hope to have an update here in the next couple of days.
We just need to iron out a few things this end.
Many thanks for your patience!
from azurite.
Is there any workaround for this? I'm currently blocked from moving to Azurite.
from azurite.
yes, I'm looking at this and will update in the next couple of days... depending on how quickly I get through everything
from azurite.
Thanks for being patient... we're currently looking at some things, and hope to have a new release to all channels soon.
I wanted to have a couple of features in there before the next release, but if I take much longer with them, we shall release with only a couple of fixes.
from azurite.
Sounds good. For now I switched back to the storage emulator for this project, but in my other one Azurite is working great so far 👍
from azurite.
I've just checked out the dev
branch and tried to run the code above and got another error:
The metadata URI 'http://127.0.0.1:10002/devstoreaccount1/$metadata#Events' is not valid for the expected payload kind 'Entry'.
Using Fiddler I discovered the following interaction
GET /devstoreaccount1/Events(PartitionKey='foo',RowKey='SS-HEAD') HTTP/1.1
Accept-Charset: UTF-8
MaxDataServiceVersion: 3.0;NetFx
Accept: application/json; odata=minimalmetadata
x-ms-client-request-id: 35332c39-98fe-42ff-978c-f40b0ff3bff6
User-Agent: Azure-Storage/8.6.0 (.NET Core)
x-ms-version: 2017-04-17
x-ms-date: Wed, 06 Jun 2018 17:16:06 GMT
Authorization: SharedKey devstoreaccount1:rILMcfhY+wDXUhkexgZcv/3xjQAeNMeWnHo6gCkXT0o=
Host: 127.0.0.1:10002
And the response was 200 but not 404
HTTP/1.1 200 OK
X-Powered-By: Express
x-ms-version: 2016-05-31
date: Wed, 06 Jun 2018 17:16:06 GMT
x-ms-request-id: 4c21eab0-69ad-11e8-ba06-c91eeba8504a
Content-Type: application/json; charset=utf-8
Content-Length: 88
ETag: W/"58-B8XnS9xdruTEWRhsL6DbgYh7QhY"
Connection: keep-alive
{"odata.metadata":"http://127.0.0.1:10002/devstoreaccount1/$metadata#Events","value":[]}
The original Storage Emulator response in this case looks like this:
HTTP/1.1 404 Not Found
Cache-Control: no-cache
Transfer-Encoding: chunked
Content-Type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8
Server: Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: cd6ac232-8451-43b0-a3f8-5e22b67c4327
x-ms-version: 2017-04-17
X-Content-Type-Options: nosniff
Date: Wed, 06 Jun 2018 17:07:27 GMT
CA
{"odata.error":{"code":"ResourceNotFound","message":{"lang":"en-US","value":"The specified resource does not exist.\nRequestId:cd6ac232-8451-43b0-a3f8-5e22b67c4327\nTime:2018-06-06T17:07:27.3137642Z"}}}
0
from azurite.
Sorry, this has taken longer than expected, as we were discussing the switch to a different emulator for table storage and this fell off my radar.
My bad.
I am again looking at getting table storage features working.
from azurite.
our table API needs quite a bit of work to return the correct values.
I'm working on getting it straightened out.
Thanks for your patience!
from azurite.
Just wanted to check any info on the next release, I face Table Storage issue and a couple of tests are effected because of this. However i am planning to use the Azure emulator meanwhile.
Error:
PANIC Something unexpected happened! Table Storage Emulator may be in an inconsistent state!
ReferenceError: partitionKey is not defined
at TableStorageManager.queryEntities (C:\snapshot\Azurite\lib\core\table\TableStorageManager.js:0)
at QueryEntities.process (C:\snapshot\Azurite\lib\actions\table\QueryEntities.js:0)
at Object.actions.(anonymous function) [as QueryEntity] (C:\snapshot\Azurite\lib\middleware\table\actions.js:0)
at module.exports.BbPromise.try (C:\snapshot\Azurite\lib\middleware\table\actions.js:0)
at tryCatcher (C:\snapshot\Azurite\node_modules\bluebird\js\release\util.js:16:23)
at Function.module.exports.Promise.attempt.Promise.try (C:\snapshot\Azurite\node_modules\bluebird\js\release\method.js:39:29)
at module.exports (C:\snapshot\Azurite\lib\middleware\table\actions.js:0)
at Layer.handle [as handle_request] (C:\snapshot\Azurite\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\snapshot\Azurite\node_modules\express\lib\router\index.js:317:13)
at C:\snapshot\Azurite\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\snapshot\Azurite\node_modules\express\lib\router\index.js:335:12)
at next (C:\snapshot\Azurite\node_modules\express\lib\router\index.js:275:10)
at module.exports.BbPromise.try (C:\snapshot\Azurite\lib\middleware\table\validation.js:0)
at tryCatcher (C:\snapshot\Azurite\node_modules\bluebird\js\release\util.js:16:23)
at Function.module.exports.Promise.attempt.Promise.try (C:\snapshot\Azurite\node_modules\bluebird\js\release\method.js:39:29)
at module.exports (C:\snapshot\Azurite\lib\middleware\table\validation.js:0)
GET /devstoreaccount1/PoisonTestTaskQueue(PartitionKey='1',RowKey='test%201a5f17fc-ed55-496e-9019-4430ea7711b2') 500 0.912 ms - 27
from azurite.
addressed in pull request #80
from azurite.
from azurite.
"Soon" ? ish?
Sorry that I can't be precise 😕
I'd like to get a few more issues resolved before we release the next update.
I'm aiming for this weekend / next week for pushing a new tagged release to the master branch.
from azurite.
Is this issue fixed? I am facing the same issue working with Azurite 2.6.5
GET /devstoreaccount1/test(PartitionKey='38',RowKey='89ddd9ff-be04-4329-855b-b0cd0aba9fc0') 500 3.133 ms - 27
**PANIC** Something unexpected happened! Table Storage Emulator may be in an inconsistent state!
ReferenceError: partitionKey is not defined
at TableStorageManager.queryEntities (C:\snapshot\Azurite\lib\core\table\TableStorageManager.js:0)
at QueryEntities.process (C:\snapshot\Azurite\lib\actions\table\QueryEntities.js:0)
at Object.actions.(anonymous function) [as QueryEntity] (C:\snapshot\Azurite\lib\middleware\table\actions.js:0)
at module.exports.BbPromise.try (C:\snapshot\Azurite\lib\middleware\table\actions.js:0)
at tryCatcher (C:\snapshot\Azurite\node_modules\bluebird\js\release\util.js:16:23)
at Function.module.exports.Promise.attempt.Promise.try (C:\snapshot\Azurite\node_modules\bluebird\js\release\method.js:39:29)
from azurite.
hi all, thanks for your patience.
As you can see, we were busy with the new architecture for blob storage.
There is a Cosmos Emulator available as a Docker image (Windows only at the moment) which does a much better job of emulating the Table API.
The fixes should be in the dev branch, and I'm currently trying to catch up on our backlog, which all now goes into the legacy dev branch, after which we shall push a release to the legacy branch and the various tooling channels.
Can you try the legacy-dev branch and let me know if you still see the same issues?
If so, it would be useful to have a sample piece of code that we can add to a test case and get the issue addressed.
from azurite.
we have now released table support in the v3 api.
This should address this issue.
from azurite.
Can you confirm which version is expected to have fixed this issue? I see the following error in the version of Azurite included with VisualStudio 2022 (14.20.0.0 / 3.19.0 by the EXE details)
Unhandled Exception: Microsoft.WindowsAzure.Storage.StorageException: The metadata URI 'http://127.0.0.1:10002/devstoreaccount1/$metadata#Tables/@Element' is not valid for the expected payload kind 'Feed'. ---> Microsoft.Data.OData.ODataException: The metadata URI 'http://127.0.0.1:10002/devstoreaccount1/$metadata#Tables/@Element' is not valid for the expected payload kind 'Feed'.
at Microsoft.Data.OData.JsonLight.ODataJsonLightMetadataUriParser.ParseMetadataUri(ODataPayloadKind expectedPayloadKind, ODataReaderBehavior readerBehavior, ODataVersion version)
at Microsoft.Data.OData.JsonLight.ODataJsonLightMetadataUriParser.Parse(IEdmModel model, String metadataUriFromPayload, ODataPayloadKind payloadKind, ODataVersion version, ODataReaderBehavior readerBehavior)
at Microsoft.Data.OData.JsonLight.ODataJsonLightDeserializer.ReadPayloadStart(ODataPayloadKind payloadKind, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, Boolean isReadingNestedPayload, Boolean allowEmptyPayload)
at Microsoft.Data.OData.JsonLight.ODataJsonLightReader.ReadAtStartImplementation()
at Microsoft.Data.OData.ODataReaderCore.ReadImplementation()
at Microsoft.Data.OData.ODataReaderCore.InterceptException[T](Func`1 action)
at Microsoft.WindowsAzure.Storage.Table.Protocol.TableOperationHttpResponseParsers.TableQueryPostProcessGeneric[TElement,TQueryType](Stream responseStream, Func`6 resolver, HttpWebResponse resp, TableRequestOptions options, OperationContext ctx, String accountName)
at Microsoft.WindowsAzure.Storage.Table.TableQuery`1.<>c__DisplayClass10`2.<QueryImpl>b__f(RESTCommand`1 cmd, HttpWebResponse resp, OperationContext ctx)
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ProcessEndOfRequest[T](ExecutionState`1 executionState)
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
--- End of inner exception stack trace ---
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
at Microsoft.WindowsAzure.Storage.Table.TableQuery`1.<>c__DisplayClass7.<ExecuteInternal>b__6(IContinuationToken continuationToken)
at Microsoft.WindowsAzure.Storage.Core.Util.CommonUtility.<LazyEnumerable>d__0`1.MoveNext()
I believe the old emulator would have returned
- <exception>.RequestInformation.HttpStatusCode == 404
- <exception>.RequestInformation.ExtendedErrorInformation.ErrorCode == TableErrorCodeStrings.TableNotFound))
from azurite.
@mm-nbergen nearly the same issue I'm having, ours is on initializing a table only in azurite.
m_KeyStore = await AzureKeyStore.CreateAsync(m_TableClient, JwtAuthenticationConstants.JwkTableName, JwtAuthenticationConstants.KeystoreRefreshInterval, null);
From what I've been told (haven't gotten to testing myself yet) it doesn't happen in azure storage emulator, only azurite.
from azurite.
Hi,
can you confirm which packages / SDKs you are using?
We are not able to support all the deprecated SDKs like WindowsAzxure.Storage.
Please see:
https://www.nuget.org/packages/WindowsAzure.Storage/
If you open a new issue with steps to repro for the new version, we can take a look and track it properly.
Thanks.
from azurite.
We've recently updated to a later SDK version, I'll follow up when I find some spare bandwidth to give Azurite another go.
from azurite.
Related Issues (20)
- Update mysql2 version HOT 5
- Metadata Vanishing HOT 12
- UserDelegationKey fails with 500 HOT 2
- Azurite HTTP Interface Impossible to Use from the Command Line. HOT 1
- BeginCopyAsync is throwing wrong exception when source blob is not found. HOT 1
- Upload from URL not working with a SAS URL HOT 1
- Not being able to launch Azurite from DockerHub. HOT 4
- The value for one of the HTTP headers is not in the correct format HOT 2
- Please Document Azurite Logging in VS CODE - not obvious how to see logs HOT 1
- Cannot add --skipApiVersionCheck when using testcontainers HOT 2
- Docker container is not up-to-date HOT 2
- Azurite returns 500 for all PUT requests after an unexpected client restart HOT 6
- Docker image won't stop restarting HOT 4
- Port specification not working (docker, --blobPort) HOT 1
- Block blob StageBlockWithURL isn't implemented HOT 6
- Azurite will deprecate supporting Node.js 14 in a future release.
- Azurite not recognizing accounts other than default even though prerequisites are met. HOT 2
- Azure Shared Access Signature - Signature did not match using ingress nginx HOT 3
- `Access-Control-Allow-Origin` header not set in Azurite response
- Aspire default table HealthCheck fails with 400 bad request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azurite.