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

flush endpoint throw error #1288

Closed
singlewind opened this issue Feb 21, 2019 · 2 comments
Closed

flush endpoint throw error #1288

singlewind opened this issue Feb 21, 2019 · 2 comments

Comments

@singlewind
Copy link

Describe the bug
/oauth2/flush endpoint return 500 error.

To Reproduce
Steps to reproduce the behavior:

  1. In postman, post flush endpoint
  2. Return error message below
    {
    "error": "error",
    "error_description": "The error is unrecognizable.",
    "status_code": 500,
    "error_debug": "EOF",
    "request_id": ""
    }

Expected behavior
Return status code 200

Version:

  • Environment: [Docker]
  • Version [oryd/hydra:v1.0.0-rc.6_oryOS.10]

Additional context
See error log below

hydra_1          | time="2019-02-21T07:00:50Z" level=error msg="An error occurred while handling a request" code=500 details="map[]" error=EOF reason= request-id= status= trace="Stack trace could not be recovered from error type *errors.errorString" writer=JSON
hydra_1          | time="2019-02-21T07:00:50Z" level=info msg="completed handling request" measure#https://gandalf.cloudscene.dev.latency=513900 method=POST remote="172.22.0.8:53788" request=/oauth2/flush status=500 text_status="Internal Server Error" took="513.9µs"
@aeneasr
Copy link
Member

aeneasr commented Feb 21, 2019

You need to send a POST request with a body, see the docs: https://www.ory.sh/docs/hydra/sdk/api#flush-expired-oauth2-access-tokens

@aeneasr aeneasr closed this as completed Feb 21, 2019
@singlewind
Copy link
Author

thanks @aeneasr that was the issue. In the documentation, it says body is not required. So I thought it was optional.

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

No branches or pull requests

2 participants