Skip to content

fix: klaviyo error handling - #2466

Merged
ujjwal-ab merged 12 commits into
developfrom
fix/klaviyo-error-handling
Aug 17, 2023
Merged

ujjwal-ab merged 12 commits into
developfrom
fix/klaviyo-error-handling

Conversation

@Gauravudia

@Gauravudia Gauravudia commented Aug 10, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

Resolved INT-340
Return retryable error if profile Id/ duplicate profile id is not returned in the response from Klaviyo

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@codecov

codecov Bot commented Aug 10, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02% 🎉

Comparison is base (e5a7023) 86.64% compared to head (6a99e61) 86.66%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2466      +/-   ##
===========================================
+ Coverage    86.64%   86.66%   +0.02%     
===========================================
  Files          563      563              
  Lines        27864    27869       +5     
  Branches      6669     6668       -1     
===========================================
+ Hits         24144    24154      +10     
+ Misses        3366     3362       -4     
+ Partials       354      353       -1     
Files Changed Coverage Δ
src/v0/destinations/klaviyo/util.js 99.20% <100.00%> (+4.20%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@linear

linear Bot commented Aug 10, 2023

Copy link
Copy Markdown
INT-340 Klaviyo : Generic transformation error

Klaviyo is not returning the errors array for status code 409 (duplicate profile). Which is triggering a generic transformation error (with error code: 500) alert in the system.
Event is getting succeed in subsequent calls (checked this from the DB).

Action needed :-
We will explicitly throw the 500 and enrich the error message if duplicate profile id is not returned from the Klaviyo in case of 409 so it will not create unnecessary alert in the system

Screenshot 2023-08-10 at 3.12.48 PM.png

@ujjwal-ab
ujjwal-ab marked this pull request as ready for review August 11, 2023 04:14
@ujjwal-ab
ujjwal-ab requested a review from a team as a code owner August 11, 2023 04:14
@ujjwal-ab
ujjwal-ab requested review from ItsSudip, krishna2020 and sauravlal15 and removed request for ItsSudip August 11, 2023 04:14
Comment thread src/v0/destinations/klaviyo/util.js Resolved
koladilip
koladilip previously approved these changes Aug 11, 2023
Comment thread src/v0/destinations/klaviyo/util.js Resolved
@ujjwal-ab
ujjwal-ab requested a review from a team as a code owner August 14, 2023 04:57
utsabc
utsabc previously approved these changes Aug 16, 2023
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

93.8% 93.8% Coverage
0.0% 0.0% Duplication

@ujjwal-ab
ujjwal-ab merged commit 1c8ee9f into develop Aug 17, 2023
@devops-github-rudderstack
devops-github-rudderstack deleted the fix/klaviyo-error-handling branch November 17, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants