Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] DocSum Svelte UI failed to send request #1065

Closed
3 of 6 tasks
Ruoyu-y opened this issue Nov 4, 2024 · 3 comments
Closed
3 of 6 tasks

[Bug] DocSum Svelte UI failed to send request #1065

Ruoyu-y opened this issue Nov 4, 2024 · 3 comments
Assignees
Labels

Comments

@Ruoyu-y
Copy link
Contributor

Ruoyu-y commented Nov 4, 2024

Priority

P2-High

OS type

Ubuntu

Hardware type

Xeon-SPR

Installation method

  • Pull docker images from hub.docker.com
  • Build docker images from source

Deploy method

  • Docker compose
  • Docker
  • Kubernetes
  • Helm

Running nodes

Single Node

What's the version?

opea/docsum-ui:latest with commit id 89f4c5f

Description

DocSum UI failed to send request the backend services. I could found such error in the web console:

Uncaught (in promise) TypeError: Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'.
    at Dl (2.Blofns3j.js:8:9152)
    at s (2.Blofns3j.js:10:1591)
    at Gl.i (2.Blofns3j.js:10:1888)
    at scheduler.BP_N31YS.js:1:6251
    at Array.forEach (<anonymous>)
    at scheduler.BP_N31YS.js:1:6237
    at g (2.Blofns3j.js:8:3816)
    at HTMLButtonElement.b (2.Blofns3j.js:8:3912)

Reproduce steps

Build the UI image from source code and start the docsum example.

Raw log

No response

@Ruoyu-y
Copy link
Contributor Author

Ruoyu-y commented Nov 4, 2024

@WenjiaoYue Can you help with the issue? Looks like it is related to your last code changes in the DocSum/ui/svelte/src/lib/shared/Network.ts :

if (params === "doc_id" && file) {
    formData.append("files", file, fileName);
    formData.append("messages", query);

@WenjiaoYue
Copy link
Collaborator

OK, I'm looking into this issue and will let you know once it's resolved.

@lvliang-intel
Copy link
Collaborator

Close the issue as it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants