> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/unexpected-exception.-please-see-server-logs-for-details.md).

# Unexpected exception. Please see server logs for details

The following error message appears when attempting to connect using Entra ID SSO after a Devolutions Server update:

`{"errorMessage" :"Unexpected exception. Please see server logs for details.","result":0}`

### Solutions

1. Open Devolutions Server Console and go to ***Server - Logs***.

<figure><img src="https://cdnweb.devolutions.net/docs/image.png" alt=""><figcaption></figcaption></figure>

2. Find the following error in the logs:

```
OAuthTokenEndpointException - OAuth token endpoint error: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret provided.
```

3. Confirm that the secret sent in the request is the client secret value, not the client secret ID, for a secret added to the application.
4. Go to the Devolutions Server web app in the Entra ID Portal.
   1. Make sure the [API permission is properly set and granted](https://docs.devolutions.net/server/kb/how-to-articles/azure-portal-configuration-guide-microsoft-authentication/#in-the-azure-portal-3) in Entra ID's ***Home*** – ***App registration*** – ***API permissions***. Also ensure that the application registration is configured to ***Web*** and check if the address is correct.
   2. Create a new secret and copy its value. Set a reminder one month before its expiration using your preferred method.
5. In the Devolutions Server web interface, head over to ***Administration*** – ***Server settings*** – ***Authentication*** – ***Microsoft authentication***. Then:
   1. Paste the new client secret.
   2. Disable ***Use specific client ID for users and user groups cache***..
   3. Click on the ***Reset cache*** button.
   4. Save your changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/unexpected-exception.-please-see-server-logs-for-details.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
