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

[BUG] Internal server error when taking too long to accept/decline grant #1917

Open
sidvishnoi opened this issue Jan 31, 2025 · 4 comments
Open
Assignees
Labels
bug Something isn't working triage Waiting to be assigned labels

Comments

@sidvishnoi
Copy link
Member

sidvishnoi commented Jan 31, 2025

Steps to reproduce

  1. Create an outgoing payment grant and reach the /grant-interactions page.
  2. Do nothing for long enough (haven't checked what's the timeout for that) MK: it is 10 mins by default
  3. Click accept or decline

Expected result

interact.finish.uri (redirect) to be followed with a grant failure indication in URL parameter.

Actual result

A modal with message "Internal server error" is shown.

Screenshots or videos

Additional context

No response

Operating system

Windows, macOS, Linux

Operating system version

No response

Browsers

Chrome, Microsoft Edge, Firefox

Browser version

No response

@sidvishnoi sidvishnoi added bug Something isn't working triage Waiting to be assigned labels labels Jan 31, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Testnet Jan 31, 2025
@dragosp1011
Copy link
Contributor

If the interaction is expired and I am trying to finish the interaction, it will not redirect back to the boutique.
Looks like some changes are required in rafiki for the redirection to happen even if the interaction is expired.

Image

@mkurapov
Copy link
Contributor

mkurapov commented Feb 20, 2025

@dragosp1011 To double check, is the error message is coming from the "finish" interaction route or the "accept/deny" route?

@dragosp1011
Copy link
Contributor

dragosp1011 commented Feb 20, 2025

I tested with boutioque locally. Currently a Internal Server Error message will appear and it does nothing after closing the modal. The internal error message is from calling the "accept/deny" route. The response form rafiki is Bad request without specific reasons why.
I tried to add the finish call when closing the error modal so the user is redirected back to the boutique and the screenshot above was the result.

@mkurapov
Copy link
Contributor

Got it, it looks like the 400 message you are getting without any other details is because we don't have nice formatting for GNAP errors on the interaction server yet (PR: interledger/rafiki#3094)

Otherwise it should be

        error: {
          code: "invalid_interaction",
          description: "invalid interaction"
        }

The screenshot above makes sense for the finish route, since at that point, the AS session/cookie is expired. Left comment on Slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Waiting to be assigned labels
Projects
Status: Backlog
Development

No branches or pull requests

3 participants