Repository navigation
fix: update default error code to 500 - #2129
Merged
Merged
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## release/v1.27.0 #2129 +/- ##
===================================================
+ Coverage 87.89% 87.93% +0.03%
===================================================
Files 509 510 +1
Lines 25783 25802 +19
Branches 6383 6389 +6
===================================================
+ Hits 22663 22689 +26
+ Misses 2787 2781 -6
+ Partials 333 332 -1
☔ View full report in Codecov by Sentry. |
saikumarrs
reviewed
May 7, 2023
| * @returns {Number} | ||
| */ | ||
| const getErrorStatusCode = (error, defaultStatusCode = 400) => { | ||
| const getErrorStatusCode = (error, defaultStatusCode = 500) => { |
Member
There was a problem hiding this comment.
Let's create a constant for the default status code and use it.
Contributor
Author
There was a problem hiding this comment.
Will address this later once the other PR is merged
Member
There was a problem hiding this comment.
It's hardly a two-minute job.
Nevertheless, please create a new task card or add this to the scope of any open tasks. Resolve this conversation after.
CC @krishna2020
chandumlg
approved these changes
May 9, 2023
|
Kudos, SonarCloud Quality Gate passed! |
saikumarrs
added a commit
that referenced
this pull request
May 10, 2023
* chore(cicd): replace local with gha cache in build steps (#2128) * chore(cicd): replace local with gha cache in build steps * fix: add missing file * fix: remove redundant parts in workflow files * chore: empty commit to trigger actions * chore: upgrade checkout action version to latest * chore: turnoff lint rule * fix: snyk issues fix (#2136) * fix: package.json & package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-XML2JS-5414874 * fix: upgrade @aws-sdk/client-s3 from 3.295.0 to 3.306.0 Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.295.0 to 3.306.0. See this package in npm: https://www.npmjs.com/package/@aws-sdk/client-s3 See this project in Snyk: https://app.snyk.io/org/rudder-integrations/project/a862a698-0e7a-46bd-8897-5dda3e28b3c6?utm_source=github&utm_medium=referral&page=upgrade-pr * chore: upgrading aws-sdk/lib-storage version --------- Co-authored-by: snyk-bot <[email protected]> * feat: braze merge users (#2135) * feat: braze merge users (#2135) * chore: fix sending secrets to reusable workflows (#2147) * feat: onboard new source formsort (#2120) * formsort: onboarding new source * feat: onboard formsort source * update formsort file structure * chore: comments addressed --------- Co-authored-by: Saurav Lal <[email protected]> Co-authored-by: Saurav Lal <[email protected]> Co-authored-by: Mihir Bhalala <[email protected]> * fix: undefined errors in braze, firehose, gaoc (#2139) * fix: undefined errors in braze, firehose, gaoc * fix: address comments * fix: add retryable error support * fix: 429 and event as a string, address comments * fix: products is an array check before iterating * chore: add tests, use native isArray * chore: fix cases * feat(ga4): common page call information(page, url, title) support in track call (#2141) * chore(release): 1.27.0 * fix: update default error code to 500 (#2129) * fix: update default error code to 500 * fix: update test cases * chore: fix package.json * fix: check event properties without making them to lower case (#2150) --------- Co-authored-by: Sai Kumar Battinoju <[email protected]> Co-authored-by: saikumarrs <[email protected]> Co-authored-by: shrouti1507 <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: AASHISH MALIK <[email protected]> Co-authored-by: Anant Jain <[email protected]> Co-authored-by: Saurav Lal <[email protected]> Co-authored-by: Saurav Lal <[email protected]> Co-authored-by: Mihir Bhalala <[email protected]> Co-authored-by: Yashasvi Bajpai <[email protected]> Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Utsab Chowdhury <[email protected]> Co-authored-by: Sudip Paul <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Update the default error code to 500
The intention of this PR is to address the default error code returned by transformer to server is retryable if not specifically set by developer. This helps to treat any system error by transformer as internal server error from server and prevent event loss
Type of change
Related issues
Checklists
Development
Code review