Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 400 error in transaction history #1083

Merged
merged 6 commits into from
Apr 11, 2024
Merged

Conversation

kugel3
Copy link
Contributor

@kugel3 kugel3 commented Apr 11, 2024

Slack discussion: thread

Description

Some users have experienced an HTTP error, that may be due to them having their clock going a little fast. When we make the requests in transaction history, the Gateway will complain if the upper bound date is more than a few seconds into the future.

This PR removes the upper bound when it would have otherwise been now.

I tested setting the clock forward and on main that does cause the 400 error, and it is indeed fixed by this PR.

It also improves the handling when there are no transactions at all.

PR submission checklist

  • I have tested account to account transfer flow and have confirmed that it works

@kugel3 kugel3 force-pushed the fix/400-error-in-transaction-history branch from e5c2b8e to 4b86ef5 Compare April 11, 2024 10:11
Copy link
Contributor

@CyonAlexRDX CyonAlexRDX left a comment

Choose a reason for hiding this comment

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

LGTM!

@kugel3 kugel3 merged commit c31a2b6 into main Apr 11, 2024
6 checks passed
@kugel3 kugel3 deleted the fix/400-error-in-transaction-history branch April 11, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants