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

Erro sending put request to /auth/admin/realms/abc/clients/client-id/management/permissions: 500 Internal Server Error #1005

Open
abdul90082 opened this issue Oct 8, 2024 · 0 comments

Comments

@abdul90082
Copy link

We have updated the keycloak to lateste version v25.0.06. Everything is working fine except this
"module.keycloak.keycloak_openid_client_permissions.token_exchange"
We are creating this resource

  + resource "keycloak_openid_client_permissions" "token_exchange" {
      + authorization_resource_server_id = (known after apply)
      + client_id                        = "2b0cf582-d0fa-4003-a11a-e1997676386d"
      + enabled                          = (known after apply)
      + id                               = (known after apply)
      + realm_id                         = "abc"

      + token_exchange_scope {
          + decision_strategy = "UNANIMOUS"
          + description       = "Allow token exchange for abc client"
          + policies          = [
              + "55946c79-81aa-4809-a72a-7d308ba377c4",
            ]
        }
    }

Getting this error

Error: error sending PUT request to /auth/admin/realms/abc/clients/2b0cf582-d0fa-4003-a11a-e1997676386d/management/permissions: 500 Internal Server Error. Response body: {"error":"unknown_error","error_description":"For more on this error consult the server log at the debug level."}

Here is the debug log

2024-10-08T11:49:42.406+0200 [DEBUG] provider.terraform-provider-keycloak_v4.4.0: 
Received response:
  @module=provider 
  tf_req_id=3d077183-63f7-234f-dc1f-4539d2f26383 
  tf_rpc=Configure 
  @caller=github.com/mrparkers/terraform-provider-keycloak/keycloak/keycloak_client.go:374 
  status="200 OK" 
  tf_provider_addr=provider 
  timestamp=2024-10-08T11:49:42.405+0200

module.keycloak.keycloak_openid_client_permissions.token_exchange: Creating...

2024-10-08T11:49:42.411+0200 [INFO]  
Starting apply for module.keycloak.keycloak_openid_client_permissions.token_exchange

2024-10-08T11:49:42.412+0200 [DEBUG] 
module.keycloak.keycloak_openid_client_permissions.token_exchange:
  applying the planned Create change

2024-10-08T11:49:42.412+0200 [DEBUG] provider.terraform-provider-keycloak_v4.4.0:
Sending request:
  path=/auth/admin/realms/abc/clients/2b0cf582-d0fa-4003-a11a-e1997676386d/management/permissions 
  tf_provider_addr=provider 
  tf_req_id=8c28d32c-e0c4-7af2-e974-99503dffd2a6 
  @caller=github.com/mrparkers/terraform-provider-keycloak/keycloak/keycloak_client.go:327 
  method=PUT 
  @module=provider 
  body={"enabled":true} 
  tf_resource_type=keycloak_openid_client_permissions 
  tf_rpc=ApplyResourceChange 
  timestamp=2024-10-08T11:49:42.412+0200

2024-10-08T11:49:42.471+0200 [DEBUG] provider.terraform-provider-keycloak_v4.4.0: 
Received response:
  @caller=github.com/mrparkers/terraform-provider-keycloak/keycloak/keycloak_client.go:374 
  @module=provider 
  tf_req_id=8c28d32c-e0c4-7af2-e974-99503dffd2a6 
  tf_rpc=ApplyResourceChange 
  body={"error":"unknown_error", "error_description":"For more on this error consult the server log at the debug level."} 
  status="500 Internal Server Error" 
  tf_provider_addr=provider 
  tf_resource_type=keycloak_openid_client_permissions 
  timestamp=2024-10-08T11:49:42.470+0200

2024-10-08T11:49:42.471+0200 [ERROR] provider.terraform-provider-keycloak_v4.4.0:
Response contains error diagnostic:
  tf_resource_type=keycloak_openid_client_permissions 
  @module=sdk.proto 
  diagnostic_detail= 
  tf_proto_version=5.3 
  tf_req_id=8c28d32c-e0c4-7af2-e974-99503dffd2a6 
  tf_rpc=ApplyResourceChange 
  @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 
  diagnostic_severity=ERROR 
  diagnostic_summary="error sending PUT request to /auth/admin/realms/abc/clients/2b0cf582-d0fa-4003-a11a-e1997676386d/management/permissions: 500 Internal Server Error.
  Response body: {"error":"unknown_error", "error_description":"For more on this error consult the server log at the debug level."}"
  tf_provider_addr=provider 
  timestamp=2024-10-08T11:49:42.471+0200

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

1 participant