-
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
ms-rest-js throws RestError when requiring @azure/storage-blob components #5279
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage |
"The request was aborted" error is thrown in Storage API calls when Aborter aborts a request. Type import will not trigger this. Does simpliy import will trigger this? Or you can share a full reproduceable sample. |
I'm not sure how Aborter could crash my process?
This is the code I run, exceptions are eventually catched by external componen, logged and swallowed.
Also please notice that the call stack doesn't originate from |
@XiaoningLiu can you provide inputs on the next steps for this |
Hi @nikodemrafalski Please try with latest @azure/storage-blob latest version 12.0.1. This issue maybe related to ms-rest-js package which throws abort error after HTTP request completes. If 12.0.1 still has this, we need help from @ramya-rao-a to take a look in ms-rest-js or @azure/core-http implementation. |
cc @jeremymeng |
I am still having same issues. it goes on restart of server but oftenly I am facing this isuue
|
@RupamShaw are you using any |
Thanks for the reply.
|
is there any update why it throws? |
@RupamShaw From your logs could you tell whether the |
after 30 minutes of server started. |
Isn't that expected since you set the aborter to time out after 30 minutes? Or were you sharing the same aborter instance for all requests? In your case you probably want to create a new aborter instance for each request. |
am I supposed to put
inside this function executes(blobName) ? |
@RupamShaw if you want to know more about abort signal, checkout this blog post by @bterlson https://techcommunity.microsoft.com/t5/azure-sdk/using-abort-signals-to-cancel-operations-in-the-azure-sdk-for/ba-p/1321797 |
Describe the bug
Given line at top of my file causes runtime Error (and process crash) not always - from time to time.
const { Aborter, BlockBlobURL, SharedKeyCredential, StorageURL } = require('@azure/storage-blob');
Exception raised:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
2. Types should be imported without errors
Screenshots
Additional context
Hosted in Azure Web App
The text was updated successfully, but these errors were encountered: