# An internal server error has occurred & Invalid Request

**URL:** <https://forum.keycloak.org/t/an-internal-server-error-has-occurred-invalid-request/18101>\
**Category:** Configuring the server\
**Tags:** authentication, saml\
**Created:** [October 25, 2022, 2:13pm UTC](https://forum.keycloak.org/t/an-internal-server-error-has-occurred-invalid-request/18101 "2022-10-25T14:13:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NNW](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/nnw/32/6873_2.png) [@NNW](https://forum.keycloak.org/u/NNW)\
**Post date:** [October 25, 2022, 2:13pm UTC](https://forum.keycloak.org/t/an-internal-server-error-has-occurred-invalid-request/18101/1 "2022-10-25T14:13:31Z")

</div>

Hey everyone,

I’m running keycloak in dev mode via ubuntu server.  
I allowed access to port 8080 on the ec2 security configurations, then runned the keycloak server via :

`sudo ./kc.sh start-dev`. ( with admin as user )

I get this in the terminal : **Keycloak 19.0.3 on JVM (powered by Quarkus 2.7.6.Final) started in 7.371s. Listening on: [http://0.0.0.0:8080](http://0.0.0.0:8080)**

After accessing the keycloak url on my browser I do this :

1. Go to Realm Settings
2. Click on [OpenID Endpoint Configuration]
3. Click on some url endpoint like this :` "authorization_endpoint": "http:// *********** :8080/realms/master/protocol/openid-connect/auth",`
4. I get the error

The error is :

- We are sorry… An internal server error has occurred for **token\_endpoint**
- We are sorry…Invalid Request for **authorization\_endpoint**

Is this related to configuration of OpenID Endpoint Configuration ?

Thanks

---

<div class="post-metadata">

**Author:** ![weltonrodrigo](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/weltonrodrigo/32/3104_2.png) [@weltonrodrigo](https://forum.keycloak.org/u/weltonrodrigo)\
**Post date:** [October 25, 2022, 5:30pm UTC](https://forum.keycloak.org/t/an-internal-server-error-has-occurred-invalid-request/18101/2 "2022-10-25T17:30:37Z")

</div>

Not sure what you’re trying to achieve, but the authorization\_endpoint expects some parameters defined in the openid connect protocol.

If you want to play with it, you can register the [https://oidcdebugger.com/](https://oidcdebugger.com/) as a client in your realm and use it to explore the keycloak response.

Also, you can understand the protocol better with this playground: [Authorization Code Flow - OAuth 2.0 Playground](https://www.oauth.com/playground/authorization-code.html)
