Closed isaac-mcfadyen closed 3 months ago
Exposing passing a custom HttpClient
seems like the right thing here, since there are various reasons why consumers may wish to switch out the transport.
Exposing passing a custom
HttpClient
seems like the right thing here, since there are various reasons why consumers may wish to switch out the transport.
Agree, we would love to be able to use cosmos with our Cloudflare Workers project. Currently considering https://fauna.com/ if anyone is looking for alternatives.
Anything we can do to help?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @bkolant-MSFT, @sajeetharan, @pjohari-ms.
Author: | isaac-mcfadyen |
---|---|
Assignees: | sajeetharan |
Labels: | `question`, `customer-reported`, `Client`, `Cosmos`, `Service Attention`, `feature-request` |
Milestone: | - |
@xirzec which milestone do we think could resolve this issue?
@xirzec which milestone do we think could resolve this issue?
That's up to @sajeetharan as the package owner.
Thanks @xirzec
@danny-people-plus we are working on this, tentative ETA is August 2023
Excited to see this on the roadmap. Thanks @isaac-mcfadyen for starting this issue.
Thanks @xirzec
@danny-people-plus we are working on this, tentative ETA is August 2023
I can see that this is still an issue, any update or revised timescale?
Cheers
I can see that this is still an issue and the fix has been removed from the 2023-11 milestone, any update or revised timescale?
@xirzec @sajeetharan any update on this? Any chance of a Christmas miracle this year?
@xirzec @sajeetharan any update on this? Any chance of a Christmas miracle this year?
I'm not sure if it counts as a miracle, but I threw together a quick PR for you: https://github.com/Azure/azure-sdk-for-js/pull/28080
Is your feature request related to a problem? Please describe.
http
and use a built-infetch
instead, similar to browsers.@azure/cosmos
NodeHttpClient is used by default (and looks to be hardcoded in, according tocreateDefaultHttpClient
fromcore-rest-pipeline
) which causes CosmosDB calls to fail.Describe the solution you'd like
@azure/cosmos
to usefetch
via a config option or similar (such ashttpClient
inCosmosClientOptions
).Describe alternatives you've considered
@cfworker/cosmos
. However, this client doesn't support all features (most notably Partial Document Updates).Additional context