Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-19474

Internal server error when requesting Device Access Token

    XMLWordPrintable

Details

    • Bug
    • Status: Triage
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Authorization Services
    • None
    • Hide

      Using docker release 15.0.2

      Show
      Using docker release 15.0.2
    • NEW
    • NEW
    • ---
    • ---

    Description

      Getting the following error when generating Device Access Token:
      POST _

      {keycloak_url}

      /auth/realms/

      {realm}

      _/protocol/openid-connect/token
      headers: content-type: application/x-www-form-urlencoded
      body: grant_type=urn:ietf:params:oauth:grant-type:device_code&client_id=_

      {client}

      &device_code=

      {device_code}

      _

       

      12:30:35,740 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-19) Uncaught server error: java.lang.IllegalStateException: stream has already been operated upon or closed
      at java.base/java.util.stream.AbstractPipeline.<init>(AbstractPipeline.java:203)
      at java.base/java.util.stream.ReferencePipeline.<init>(ReferencePipeline.java:94)
      at java.base/java.util.stream.ReferencePipeline$StatelessOp.<init>(ReferencePipeline.java:696)
      at java.base/java.util.stream.ReferencePipeline$3.<init>(ReferencePipeline.java:189)
      at java.base/java.util.stream.ReferencePipeline.map(ReferencePipeline.java:188)
      at org.keycloak.keycloak-services@15.0.2//org.keycloak.services.util.DefaultClientSessionContext.fromClientSessionAndClientScopes(DefaultClientSessionContext.java:99)
      at org.keycloak.keycloak-services@15.0.2//org.keycloak.protocol.oidc.grants.device.DeviceGrantType.oauth2DeviceFlow(DeviceGrantType.java:273)
      at org.keycloak.keycloak-services@15.0.2//org.keycloak.protocol.oidc.endpoints.TokenEndpoint.oauth2DeviceCodeToToken(TokenEndpoint.java:979)
      at org.keycloak.keycloak-services@15.0.2//org.keycloak.protocol.oidc.endpoints.TokenEndpoint.processGrantRequest(TokenEndpoint.java:210)

      ......

      Attachments

        Activity

          People

            Unassigned Unassigned
            jsv.segador john segador
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: