You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
Azurite-Blob/3.19.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What's the Node.js version?
v16.14.2
What problem was encountered?
DataLakeFileSystemClient filesystem = dataLakeServiceClient.GetFileSystemClient("containerName");
filesystem.Create(); -- -create conainer -- works good
filesystem.CreateDirectory("RootDirectory"); -- create directory -- fails with http 500
Steps to reproduce the issue?
Create console application
add PackageReference Azure.Storage.Files.DataLake
copy and paste following in program.cs
using Azure.Storage;
using Azure.Storage.Files.DataLake;
Console.WriteLine("Hello, World!");
try
{
var credentials = new StorageSharedKeyCredential(
"devstoreaccount1",
"Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==");
var sa_uri = new Uri("http://127.0.0.1:10000/devstoreaccount1/");
var client = new DataLakeServiceClient(sa_uri, credentials);
DataLakeFileSystemClient filesystem = client.GetFileSystemClient("testcontainer");
filesystem.Create();
filesystem.CreateDirectory("testdirectory");
If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:
-d "<pathtodebuglog>"
2022-09-13T14:24:08.002Z 0cb0c6ae-67f5-4fd6-8d36-fe86eca08cf8 verbose: DeserializerMiddleware: Start deserializing...
2022-09-13T14:24:08.003Z 0cb0c6ae-67f5-4fd6-8d36-fe86eca08cf8 info: HandlerMiddleware: DeserializedParameters={"options":{"requestId":"aeed715f-2a1e-4e29-8b3d-6cdc42f4c40c","directoryHttpHeaders":{},"leaseAccessConditions":{},"modifiedAccessConditions":{}},"resource":"directory","version":"2021-08-06"}
2022-09-13T14:24:08.003Z 0cb0c6ae-67f5-4fd6-8d36-fe86eca08cf8 error: ErrorMiddleware: Received an error, fill error information to HTTP response
2022-09-13T14:24:08.003Z 0cb0c6ae-67f5-4fd6-8d36-fe86eca08cf8 error: ErrorMiddleware: ErrorName=TypeError ErrorMessage=Cannot read properties of undefined (reading 'apply') ErrorStack="TypeError: Cannot read properties of undefined (reading 'apply')\n at C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\dist\\src\\blob\\generated\\middleware\\HandlerMiddlewareFactory.js:58:18\n at C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\dist\\src\\blob\\generated\\ExpressMiddlewareFactory.js:77:63\n at Layer.handle [as handle_request] (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\node_modules\\express\\lib\\router\\layer.js:95:5)\n at trim_prefix (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\node_modules\\express\\lib\\router\\index.js:328:13)\n at C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\node_modules\\express\\lib\\router\\index.js:286:9\n at Function.process_params (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\node_modules\\express\\lib\\router\\index.js:346:12)\n at next (C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\azurite\\node_modules\\express\\lib\\router\\index.js:280:10)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"
2022-09-13T14:24:08.003Z 0cb0c6ae-67f5-4fd6-8d36-fe86eca08cf8 error: ErrorMiddleware: Set HTTP code: 500
Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
Have you found a mitigation/solution?
Nope.
The text was updated successfully, but these errors were encountered:
@sheshisheriaspen
Currently Azurite only support Blob, Queue, and Table (preview), but not support datalake gen2.
Since CreateDirectory is a datalakegen2 API, Azurite still not support it.
Besides that, for create filesystem, file system is also a blob container, so SDK might call it through blob API, which is supported by Azurite, so it success.
BTW, we already has issue to track datalakegen2 support: #553.
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
Azurite-Blob/3.19.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What's the Node.js version?
v16.14.2
What problem was encountered?
DataLakeFileSystemClient filesystem = dataLakeServiceClient.GetFileSystemClient("containerName");
filesystem.Create(); -- -create conainer -- works good
filesystem.CreateDirectory("RootDirectory"); -- create directory -- fails with http 500
Steps to reproduce the issue?
using Azure.Storage;
using Azure.Storage.Files.DataLake;
Console.WriteLine("Hello, World!");
try
{
var credentials = new StorageSharedKeyCredential(
"devstoreaccount1",
"Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==");
var sa_uri = new Uri("http://127.0.0.1:10000/devstoreaccount1/");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:
Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
Have you found a mitigation/solution?
Nope.
The text was updated successfully, but these errors were encountered: