Frontend return 500 if requested with curl #2491

Closed
opened 2026-02-21 17:46:27 -05:00 by yindo · 0 comments
Owner

Originally created by @LeoQuote on GitHub (Apr 23, 2024).

Originally assigned to: @crazywoola on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. start dify
  2. request dify with curl

curl -v mydify.example.com/app

✔️ Expected Behavior

return 200 with frontend content

Actual Behavior

500 was returned

curl https://dify.example.com/apps -v
*   Trying 10.1.32.37:443...
* Connected to dify.example.com (10.1.32.37) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted h2
* Server certificate:
*  subject: [NONE]
*  start date: Mar 21 08:53:49 2024 GMT
*  expire date: Jun 19 08:53:49 2024 GMT
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://dify.example.com/apps
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: dify.example.com]
* [HTTP/2] [1] [:path: /apps]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /apps HTTP/2
> Host: dify.example.com
> User-Agent: curl/8.4.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 500
< date: Tue, 23 Apr 2024 15:00:13 GMT
< content-type: text/html; charset=utf-8
< vary: RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url, Accept-Encoding
< x-powered-by: Next.js
< cache-control: private, no-cache, no-store, max-age=0, must-revalidate
< strict-transport-security: max-age=15724800; includeSubDomains
<

server error:

14:55:16 1|dify-web  | RangeError: Incorrect locale information provided
14:55:16 1|dify-web  |     at Intl.getCanonicalLocales (<anonymous>)
14:55:16 1|dify-web  |     at o (/app/web/.next/server/chunks/3384.js:43:7624)
14:55:16 1|dify-web  |     at b (/app/web/.next/server/chunks/2518.js:107:49632)
14:55:16 1|dify-web  |     at D (/app/web/.next/server/chunks/2518.js:107:44003)
14:55:16 1|dify-web  |     at em (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:128334)
14:55:16 1|dify-web  |     at /app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:140034
14:55:16 1|dify-web  |     at Array.toJSON (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:143612)
14:55:16 1|dify-web  |     at stringify (<anonymous>)
14:55:16 1|dify-web  |     at eE (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131997)
14:55:16 1|dify-web  |     at eR (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:132440)
14:55:16 1|dify-web  | RangeError: Incorrect locale information provided
14:55:16 1|dify-web  |     at Intl.getCanonicalLocales (<anonymous>)
14:55:16 1|dify-web  |     at o (/app/web/.next/server/chunks/3384.js:43:7624)
14:55:16 1|dify-web  |     at b (/app/web/.next/server/chunks/2518.js:107:49632)
14:55:16 1|dify-web  |     at u (/app/web/.next/server/app/(commonLayout)/apps/page.js:1:19386)
14:55:16 1|dify-web  |     at em (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:128334)
14:55:16 1|dify-web  |     at /app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:140034
14:55:16 1|dify-web  |     at Array.toJSON (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:143612)
14:55:16 1|dify-web  |     at stringify (<anonymous>)
14:55:16 1|dify-web  |     at eE (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131997)
14:55:16 1|dify-web  |     at eR (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:132440)
14:55:17 1|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.] {
14:55:17 1|dify-web  |   digest: '2777404653'
14:55:17 1|dify-web  | }

People would use probe or monitoring tool to monitor dify frontend, this could be a bug for some users.

Originally created by @LeoQuote on GitHub (Apr 23, 2024). Originally assigned to: @crazywoola on GitHub. ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. start dify 2. request dify with curl curl -v mydify.example.com/app ### ✔️ Expected Behavior return 200 with frontend content ### ❌ Actual Behavior 500 was returned ``` curl https://dify.example.com/apps -v * Trying 10.1.32.37:443... * Connected to dify.example.com (10.1.32.37) port 443 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN: server accepted h2 * Server certificate: * subject: [NONE] * start date: Mar 21 08:53:49 2024 GMT * expire date: Jun 19 08:53:49 2024 GMT * SSL certificate verify ok. * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://dify.example.com/apps * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: dify.example.com] * [HTTP/2] [1] [:path: /apps] * [HTTP/2] [1] [user-agent: curl/8.4.0] * [HTTP/2] [1] [accept: */*] > GET /apps HTTP/2 > Host: dify.example.com > User-Agent: curl/8.4.0 > Accept: */* > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing < HTTP/2 500 < date: Tue, 23 Apr 2024 15:00:13 GMT < content-type: text/html; charset=utf-8 < vary: RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url, Accept-Encoding < x-powered-by: Next.js < cache-control: private, no-cache, no-store, max-age=0, must-revalidate < strict-transport-security: max-age=15724800; includeSubDomains < ``` server error: ``` 14:55:16 1|dify-web | RangeError: Incorrect locale information provided 14:55:16 1|dify-web | at Intl.getCanonicalLocales (<anonymous>) 14:55:16 1|dify-web | at o (/app/web/.next/server/chunks/3384.js:43:7624) 14:55:16 1|dify-web | at b (/app/web/.next/server/chunks/2518.js:107:49632) 14:55:16 1|dify-web | at D (/app/web/.next/server/chunks/2518.js:107:44003) 14:55:16 1|dify-web | at em (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:128334) 14:55:16 1|dify-web | at /app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:140034 14:55:16 1|dify-web | at Array.toJSON (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:143612) 14:55:16 1|dify-web | at stringify (<anonymous>) 14:55:16 1|dify-web | at eE (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131997) 14:55:16 1|dify-web | at eR (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:132440) 14:55:16 1|dify-web | RangeError: Incorrect locale information provided 14:55:16 1|dify-web | at Intl.getCanonicalLocales (<anonymous>) 14:55:16 1|dify-web | at o (/app/web/.next/server/chunks/3384.js:43:7624) 14:55:16 1|dify-web | at b (/app/web/.next/server/chunks/2518.js:107:49632) 14:55:16 1|dify-web | at u (/app/web/.next/server/app/(commonLayout)/apps/page.js:1:19386) 14:55:16 1|dify-web | at em (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:128334) 14:55:16 1|dify-web | at /app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:140034 14:55:16 1|dify-web | at Array.toJSON (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:143612) 14:55:16 1|dify-web | at stringify (<anonymous>) 14:55:16 1|dify-web | at eE (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:131997) 14:55:16 1|dify-web | at eR (/app/web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:132440) 14:55:17 1|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.] { 14:55:17 1|dify-web | digest: '2777404653' 14:55:17 1|dify-web | } ``` People would use probe or monitoring tool to monitor dify frontend, this could be a bug for some users.
yindo added the 🐞 bug label 2026-02-21 17:46:27 -05:00
yindo closed this issue 2026-02-21 17:46:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2491