Skip to content

Conversation

@emdobrin
Copy link
Contributor

Description

  • Adds 507 as recoverable error code as per contract with the Edge server implementation
  • Uses NetworkingConstants.RECOVERABLE_ERROR_CODES as the base of error codes and add additional ones specific to Edge
  • Checks Retry-After value is greater than 0, otherwise applies the default timeout.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

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

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Contributor

@kevinlind kevinlind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. A few minor comments plus the formatting needs fixing.

@emdobrin emdobrin changed the base branch from main to dev October 17, 2024 17:45
@emdobrin emdobrin requested a review from praveek October 17, 2024 17:55
@kevinlind kevinlind merged commit 4085495 into adobe:dev Oct 17, 2024
6 checks passed
@emdobrin emdobrin deleted the hot-fix-1 branch October 17, 2024 23:10
timkimadobe added a commit to timkimadobe/aepsdk-edge-android that referenced this pull request Nov 20, 2024
timkimadobe pushed a commit to timkimadobe/aepsdk-edge-android that referenced this pull request Nov 20, 2024
* add 507 error code as recoverable, handle negative retry-after, tests

* minor fix - comment

* Fix format of EdgeNetworkService and tests

* minor text updates

* fix network mock after rebase with dev

---------

Co-authored-by: Kevin Lind <[email protected]>
timkimadobe added a commit that referenced this pull request Nov 20, 2024
timkimadobe pushed a commit to timkimadobe/aepsdk-edge-android that referenced this pull request Nov 20, 2024
* add 507 error code as recoverable, handle negative retry-after, tests

* minor fix - comment

* Fix format of EdgeNetworkService and tests

* minor text updates

* fix network mock after rebase with dev

---------

Co-authored-by: Kevin Lind <[email protected]>
timkimadobe added a commit that referenced this pull request Feb 25, 2025
* Update recoverable error codes (#170)

* add 507 error code as recoverable, handle negative retry-after, tests

* minor fix - comment

* Fix format of EdgeNetworkService and tests

* minor text updates

* fix network mock after rebase with dev

---------

Co-authored-by: Kevin Lind <[email protected]>

* Add exclusion for Edge back for Edge Consent dependency

* Use $mavenEdgeConsentVersion instead of hardcoded value

---------

Co-authored-by: Emilia Dobrin <[email protected]>
Co-authored-by: Kevin Lind <[email protected]>
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.

2 participants