Closed joelwright-dev closed 2 months ago
@deyaaeldeen @jeremymeng @joheredi @maorleger @mpodwysocki @timovv @xirzec
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Additional info: This problem appears to occur when many requests are made at once (potentially looking at some kind of accidental DOS attack on my own database, however this is what the rate limiting should account for..
Thanks for report this issue @joelwright-dev! Very likely this would be addressed by PR https://github.com/Azure/azure-sdk-for-js/pull/30151
The issue was that when we log request and responses, we try to remove sensitive informations. Our sanitizer wasn't handling url
property of empty string properly so when there's some property or nested property with url
name and empty string value this error was thrown.
We just released a fix to the TypeError: Invalid URL
issue in @azure/core-rest-pipeline 1.16.2. Please refresh your dependencies to get the latest version.
Describe the bug When using the items.create method repeatedly to upload data, after a while and more often than not (roughly about 80% of the time), the app will fail with an ECONNRESET or ETIMEDOUT error code. Upon further investigation the error it appears to come from the @azure/core-rest-pipeline/dist/commonjs/util/sanitizer.js file on line 104:
And it appears that whatever this sanitizer function is, is failing to parse an empty string. I don't know why an empty string would be parsed in the first place? But either this function should be fixed to handle this, or the items.create method needs to be fixed to not parse a blank string.
Can anyone explain why this is happening?
Expected behavior Item gets added to the container.