-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
build(deps): bump reqwest from v0.11.18
to v0.12.2
#4247
Conversation
crates/router/src/core/webhooks.rs
Outdated
/* | ||
This is a temporary fix for converting http::HeaderMap from actix_web to reqwest | ||
Once actix_web upgrades the http version from v0.2.9 to 1.x, this can be removed | ||
*/ | ||
fn convert_headers( | ||
actix_headers: &actix_web::http::header::HeaderMap, | ||
) -> reqwest::header::HeaderMap { | ||
let mut reqwest_headers = reqwest::header::HeaderMap::new(); | ||
for (name, value) in actix_headers.iter() { | ||
if let Ok(name) = reqwest::header::HeaderName::from_str(name.as_str()) { | ||
if let Ok(value) = reqwest::header::HeaderValue::from_bytes(value.as_bytes()) { | ||
reqwest_headers.insert(name, value); | ||
} | ||
} | ||
} | ||
reqwest_headers | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can have a discussion on this.
the pr to update http crate is open here: actix/actix-web#3208
v0.11.18
to v0.12.2
v0.11.18
to v0.12.2
v0.11.18
to v0.12.2
* 'main' of github.com:juspay/hyperswitch: refactor(core): removed the processing status for payment_method_status (#4213) docs(README): remove link to outdated early access form build(deps): bump `error-stack` from version `0.3.1` to `0.4.1` (#4188) chore(version): 2024.04.01.0 feat(mandates): allow off-session payments using `payment_method_id` (#4132) ci(CI-pr): determine modified crates more deterministically (#4233) chore(config): add billwerk base URL in deployment configs (#4243) feat(payment_method): API to list countries and currencies supported by a country and payment method type (#4126) chore(version): 2024.03.28.0 refactor(config): allow wildcard origin for development and Docker Compose setups (#4231) fix(core): Amount capturable remain same for `processing` status in capture (#4229) fix(euclid_wasm): checkout wasm metadata issue (#4198) fix(trustpay): [Trustpay] Add error code mapping '800.100.100' (#4224) feat(connector): [billwerk] add connector template code (#4123) fix(connectors): fix wallet token deserialization error (#4133) fix(log): adding span metadata to `tokio` spawned futures (#4118) chore(version): 2024.03.27.0 fix(connector): [CRYPTOPAY] Skip metadata serialization if none (#4205) fix(connector): [Trustpay] fix deserialization error for incoming webhook response for trustpay and add error code mapping '800.100.203' (#4199) fix(core): make eci in AuthenticationData optional (#4187)
This reverts commit 8f6f98b.
crates/router/build.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this increase in min stack size needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not comfortable with us constantly bumping the number without attempting to address it.
Either revert this change, or if it is absolutely required, update the comment to reflect the updated number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started to get stack overflow
on every run (stripe CI) resulting server shutdown until I bumped the min stack to 8 MiB which is why I bumped the number.
Since the bump has already been done here, the change is reverted.
crates/router/build.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not comfortable with us constantly bumping the number without attempting to address it.
Either revert this change, or if it is absolutely required, update the comment to reflect the updated number.
….0 instead of adding additional dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connector changes LGTM
After today's discussions, it has been decided to better wait before getting this PR merged as Once that is done, it will be easier for us to update the dependencies all together ( With that said, I'll be closing this PR to avoid any conflicts or confusion. I'll be raising yet another PR on behalf of this (just to keep the history clean) addressing the above mentioned changes. |
ab97656
I do not think this will ever be looked upon since:
|
Type of Change
Description
This PR updates
reqwest
dependency version from0.11.18
to0.12.2
to address frequent disconnections and connection reset errors.The major here is that we use
actix_web
along withreqwest
. Withreqwest
releasing0.12.0
,http
crate version was bumped from0.x
to1.x
while onactix_web v4.5.1
it is still on versionv0.2.9
. This version mismatch is what is handled here in this PR.Also, in webhook.rs, it is not possible to directly convert
headers
that we get fromreqwest
to match withactix_web
unlessactix_web
updateshttp
version to1.x
. Also, sincereqwest
does not supportHttpRequest
explicitly, we cannot directly use that either which led to manual conversion. (Open for discussions on this)reqwest changelog can be found here and notable breaking changes can be found here
Additional Changes
Motivation and Context
Dependency update has been done in order to address frequent
connection_reset
errors.Closes #4248
How did you test it?
Basic tests
Postman tests
Once they succeeded, ran the postman collection for confirmation
Webhooks
Clickhouse
Set up clickhouse by following the guide here
http:localhost:8090
Checklist
cargo +nightly fmt --all
cargo clippy