Skip to content

Commit

Permalink
fix: comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik committed Apr 9, 2024
1 parent 045c0e7 commit 142675f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v0/destinations/sfmc/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getToken = async (clientId, clientSecret, subdomain) => {
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(processedResponseSfmc.status || 400),
},
processedResponseSfmc.response?.message || JSON.stringify(processedResponseSfmc),
JSON.stringify(processedResponseSfmc),
);
}

Expand Down
2 changes: 1 addition & 1 deletion test/integrations/destinations/sfmc/processor/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ export const data = [
body: [
{
error:
'{"message":"Could not retrieve access token","destinationResponse":"Your requests are temporarily blocked."}',
'{"message":"Could not retrieve access token","destinationResponse":"{\\"response\\":{\\"message\\":\\"Your requests are temporarily blocked.\\",\\"errorcode\\":50200,\\"documentation\\":\\"https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/error-handling.htm\\"},\\"status\\":429}"}',
statTags: {
destType: 'SFMC',
errorCategory: 'network',
Expand Down

0 comments on commit 142675f

Please sign in to comment.