-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Updating @azure/storage-blob from v12.5.0 to 12.6.0 is causing exceptions and breaking functionality #16056
Comments
Hi @subuv, thank you so much for creating this issue. First, I am sorry for the disruption this must have caused you - I can imagine that it can be very frustrating!
Looking forward to hearing from you! Maor |
Hi @subuv Is this issue blocking your scenario now? Do you have a workaround for it? We'll try to have a repro in our local environment. Will update you with any progress. Thanks |
Seems related to #13798 although that issue references @azure/[email protected] I tried reproducing this by starting with @azure/storage-blob 12.5.0 and upgrading to @azure/storage-blob 12.6.0 and running the same bit of code that lists blobs (see below) and did not run into this error. @EmmaZhu - have you been able to reproduce this yet? @subuv I'm really sorry for the disruption this has caused. Unforutnately @opentelemetry/api has been in beta for quite some time, which meant that our tracing support has been in beta as well. Now that @opentelemetry/api has stabilized at 1.0 we expect this to stabilize as well; however, we do not expect to break customers that are not using tracing and if we did - I'd like to get it fixed and resolved. But I am unable to reproduce this by following the flow I described above so I need some more information: can you share a complete stack trace if you can reproduce this? Here's my code snippet that worked across storage blob upgrades: import { BlobServiceClient } from "@azure/storage-blob";
import { DefaultAzureCredential } from "@azure/identity";
async function main() {
const client = new BlobServiceClient(
"https://my_storage.blob.core.windows.net",
new DefaultAzureCredential()
);
const containerClient = client.getContainerClient("test");
for await (const blob of containerClient.listBlobsFlat()) {
console.log(blob.name);
}
}
main()
.then(() => console.log("done"))
.catch((err) => console.log(err)); |
Hi Emma/Maor, Thank you for getting back on this. As of now it is not a blocker for us. I have the stacktrace from when i reported this, providing it here. But if Stacktrace: |
@hectorhdzg FYI - is this the same issue as #13798 and if so, would it be resolved by updating applicationinsights to 2.1.4? Certainly seems like a dupe but I wanted to confirm |
@maorleger yes updating to applicationinsigths to 2.1.4 must solve this issue |
Thanks for confirming! @subuv could you try applicationinsights 2.1.4 and see if it resolves your issue? If so, feel free to close this issue. |
Updating to applicationinsights 2.1.4 has solved this issue. Thank you @hectorhdzg, @maorleger and @EmmaZhu! |
We seem to be facing the same issue reported above when attempting to use azure storage but: a) none of the fixes seem to address the problem Our packages are currently: "dependencies": { The code where the context issue is being triggered is: try { As you can imagine this is pretty urgent for us so any assistance would be appreciated..... |
Hey @murphyliam - I can try to help but I am unfortunately unable to reproduce this with the packages listed above. What I tried: set the following package.json dependencies:
run When I check for @opentelemetry/api I see they are all on the same compatible version: validation main % npm ls @opentelemetry/api
[email protected] /home/mleger/workspace/azure-sdk-experiments/validation
├─┬ @azure/[email protected]
│ └─┬ @azure/[email protected]
│ └── @opentelemetry/[email protected] deduped
├── @opentelemetry/[email protected]
└─┬ [email protected]
└── @opentelemetry/[email protected] deduped Same with core-tracing: validation main % npm ls @azure/core-tracing
[email protected] /home/mleger/workspace/azure-sdk-experiments/validation
└─┬ @azure/[email protected]
├─┬ @azure/[email protected]
│ └── @azure/[email protected] deduped
├─┬ @azure/[email protected]
│ └── @azure/[email protected] deduped
└── @azure/[email protected] Finally, I run the code snippet you shared and all works as expected I have a few questions for you:
Thanks! |
Thanks for the quick response; I've duplicated this post in 16947 as realised this post has been flagged as closed....to answer you initial questions:
|
..to clarify the above, the local dev machines both point to the same azure hosted storage containers. Its only when we host the nodejs project on azure directly where we start getting the exceptions; that is an ubuntu image hosted in an azure app service. |
Update maxParallelTasks description with private preview mention (Azure#16056)
Describe the bug
Updating storage-blob to v12.6.0 from v12.5.0 is implicitly updating "core-tracing" to "1.0.0-preview.11". It is also removing reference to package "opentelemetry/api" thereby breaking already existing functionality. This is not a minor update as how the documentation claims it to be.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This update should not be a breaking change as it is claimed to be a minor update.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Exception Stacktrace:
TypeError: _a.context is not a function\n at Object.getSpanContext (C:\Developer\Proje
ct\DataCatalog\node_modules\@opentelemetry\api\build\src\context\context.js:70:76)\n at getParent (C:\Developer\Project\DataCatalog\node_modules\@opentelemetry\tracing\build\src\
Tracer.js:101:16)\n
The text was updated successfully, but these errors were encountered: