Adding knowledge throws error (PDF) #2253

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

Originally created by @AndyMik90 on GitHub (Apr 16, 2024).

Originally assigned to: @takatost, @JohnJyong 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 (Source)

Steps to reproduce

Adding new knowledge throws error and quitting api server.
I can't figure out if this is an error on my local machine as the same PDF can be upload to Dify Cloud. But it haven't happened until version 0.6.3

✔️ Expected Behavior

Upload PDF and embed it to vector db.the

Actual Behavior

FO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:31] "POST /console/api/files/upload?source=datasets HTTP/1.1" 201 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/workspaces/current/models/model-types/rerank HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/workspaces/current/default-model?model_type=rerank HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/indexing-estimate HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/indexing-estimate HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/workspaces/current/default-model?model_type=rerank HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/workspaces/current/model-providers/cohere/icon_small/en_US?_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiOGM0ZDRjMjUtNGYyMC00YWM0LTlkZDMtYWJlMzI3NTkyMmNjIiwiZXhwIjoxNzE1ODczMjgyLCJpc3MiOiJDTE9VRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.dZGDQXBOtu6yR5F2Z7h85KJbmVdf1KYCyqzNRC2GGmE HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/workspaces/current/models/model-types/rerank HTTP/1.1" 200 - python(2929,0x2d8f07000) malloc: *** error for object 0x1272cdb08: pointer being freed was not allocated python(2929,0x2d8f07000) malloc: *** set a breakpoint in malloc_error_break to debug

`Unhandled Runtime Error
TypeError: Failed to fetch

Source
service/base.ts (299:17) @ fetch

297 | }),
298 | new Promise((resolve, reject) => {

299 | globalThis.fetch(urlWithPrefix, options as RequestInit)
| ^
300 | .then((res) => {
301 | const resClone = res.clone()
302 | // Error handler`

Originally created by @AndyMik90 on GitHub (Apr 16, 2024). Originally assigned to: @takatost, @JohnJyong 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 (Source) ### Steps to reproduce Adding new knowledge throws error and quitting api server. I can't figure out if this is an error on my local machine as the same PDF can be upload to Dify Cloud. But it haven't happened until version 0.6.3 ### ✔️ Expected Behavior Upload PDF and embed it to vector db.the ### ❌ Actual Behavior `FO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:31] "POST /console/api/files/upload?source=datasets HTTP/1.1" 201 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/workspaces/current/models/model-types/rerank HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/workspaces/current/default-model?model_type=rerank HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/indexing-estimate HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "OPTIONS /console/api/datasets/indexing-estimate HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/workspaces/current/default-model?model_type=rerank HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/datasets/process-rule HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/workspaces/current/model-providers/cohere/icon_small/en_US?_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiOGM0ZDRjMjUtNGYyMC00YWM0LTlkZDMtYWJlMzI3NTkyMmNjIiwiZXhwIjoxNzE1ODczMjgyLCJpc3MiOiJDTE9VRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.dZGDQXBOtu6yR5F2Z7h85KJbmVdf1KYCyqzNRC2GGmE HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [16/Apr/2024 21:35:38] "GET /console/api/workspaces/current/models/model-types/rerank HTTP/1.1" 200 - python(2929,0x2d8f07000) malloc: *** error for object 0x1272cdb08: pointer being freed was not allocated python(2929,0x2d8f07000) malloc: *** set a breakpoint in malloc_error_break to debug` `Unhandled Runtime Error TypeError: Failed to fetch Source service/base.ts (299:17) @ fetch 297 | }), 298 | new Promise((resolve, reject) => { > 299 | globalThis.fetch(urlWithPrefix, options as RequestInit) | ^ 300 | .then((res) => { 301 | const resClone = res.clone() 302 | // Error handler`
yindo added the 🐞 bug label 2026-02-21 17:43:30 -05:00
yindo closed this issue 2026-02-21 17:43:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2253