We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387e6ae commit d55aea1Copy full SHA for d55aea1
crates/router/src/connector/authorizedotnet/transformers.rs
@@ -321,7 +321,9 @@ impl ForeignTryFrom<Value> for Vec<UserField> {
321
type Error = error_stack::Report<errors::ConnectorError>;
322
fn foreign_try_from(metadata: Value) -> Result<Self, Self::Error> {
323
let hashmap: BTreeMap<String, Value> = serde_json::from_str(&metadata.to_string())
324
- .change_context(errors::ConnectorError::ResponseDeserializationFailed)
+ .change_context(errors::ConnectorError::RequestEncodingFailedWithReason(
325
+ "Failed to serialize request metadata".to_owned(),
326
+ ))
327
.attach_printable("")?;
328
let mut vector: Self = Self::new();
329
for (key, value) in hashmap {
0 commit comments