Error: An error occurred in the Server Components render. #4240

Closed
opened 2026-02-21 18:05:21 -05:00 by yindo · 2 comments
Owner

Originally created by @elroystar on GitHub (Jun 24, 2024).

Originally assigned to: @iamjoel on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.11

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.

web-1 | 11:37:39 0|dify-web | RangeError: Incorrect locale information provided
web-1 | 11:37:39 0|dify-web | at Intl.getCanonicalLocales ()
web-1 | 11:37:39 0|dify-web | at f (/app/web/.next/server/chunks/4445.js:43:36660)
web-1 | 11:37:39 0|dify-web | at b (/app/web/.next/server/chunks/2518.js:119:54047)
web-1 | 11:37:39 0|dify-web | at D (/app/web/.next/server/chunks/2518.js:119:46997)
web-1 | 11:37:39 0|dify-web | at em (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131226)
web-1 | 11:37:39 0|dify-web | at /app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142926
web-1 | 11:37:39 0|dify-web | at Array.toJSON (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:146504)
web-1 | 11:37:39 0|dify-web | at stringify ()
web-1 | 11:37:39 0|dify-web | at eR (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134889)
web-1 | 11:37:39 0|dify-web | at eP (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135332)
web-1 | 11:37:39 0|dify-web | [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
web-1 | 11:37:39 0|dify-web | digest: '4268659373'
web-1 | 11:37:39 0|dify-web | }

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @elroystar on GitHub (Jun 24, 2024). Originally assigned to: @iamjoel on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.11 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error. web-1 | 11:37:39 0|dify-web | RangeError: Incorrect locale information provided web-1 | 11:37:39 0|dify-web | at Intl.getCanonicalLocales (<anonymous>) web-1 | 11:37:39 0|dify-web | at f (/app/web/.next/server/chunks/4445.js:43:36660) web-1 | 11:37:39 0|dify-web | at b (/app/web/.next/server/chunks/2518.js:119:54047) web-1 | 11:37:39 0|dify-web | at D (/app/web/.next/server/chunks/2518.js:119:46997) web-1 | 11:37:39 0|dify-web | at em (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131226) web-1 | 11:37:39 0|dify-web | at /app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142926 web-1 | 11:37:39 0|dify-web | at Array.toJSON (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:146504) web-1 | 11:37:39 0|dify-web | at stringify (<anonymous>) web-1 | 11:37:39 0|dify-web | at eR (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134889) web-1 | 11:37:39 0|dify-web | at eP (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135332) web-1 | 11:37:39 0|dify-web | [Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { web-1 | 11:37:39 0|dify-web | digest: '4268659373' web-1 | 11:37:39 0|dify-web | } ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:05:21 -05:00
yindo closed this issue 2026-02-21 18:05:21 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 24, 2024):

@elroystar Hello there! I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. I'm Dosu, your friendly bot assistant.

To resolve the "Incorrect locale information provided" error in your self-hosted Dify version 0.6.11 (Docker), you should check and configure the locale settings in your Docker environment. This can typically be done by setting the appropriate environment variables in your Docker Compose configuration.

Here is how you can set the locale environment variables:

  1. Navigate to the dify/docker directory.

  2. Open the relevant .env file (you may need to create one if it doesn't exist by copying from .env.example).

  3. Add or update the locale settings in the .env file. For example:

    LANG=en_US.UTF-8
    LANGUAGE=en_US:en
    LC_ALL=en_US.UTF-8
    
  4. Restart your Docker containers to apply the changes:

    docker compose down
    docker compose up -d
    

This should resolve the locale-related error [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jun 24, 2024): <!-- Greeting --> @elroystar Hello there! I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. I'm Dosu, your friendly bot assistant. <!-- Answer --> To resolve the "Incorrect locale information provided" error in your self-hosted Dify version 0.6.11 (Docker), you should check and configure the locale settings in your Docker environment. This can typically be done by setting the appropriate environment variables in your Docker Compose configuration. Here is how you can set the locale environment variables: 1. Navigate to the `dify/docker` directory. 2. Open the relevant `.env` file (you may need to create one if it doesn't exist by copying from `.env.example`). 3. Add or update the locale settings in the `.env` file. For example: ```env LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 ``` 4. Restart your Docker containers to apply the changes: ```bash docker compose down docker compose up -d ``` This should resolve the locale-related error <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/docker-compose.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@iamjoel commented on GitHub (Jul 2, 2024):

Can you provide more detail to reproduce this issus? @elroystar

@iamjoel commented on GitHub (Jul 2, 2024): Can you provide more detail to reproduce this issus? @elroystar
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4240