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 Report: #874

Open
2 tasks done
huicewang opened this issue Mar 7, 2024 · 0 comments
Open
2 tasks done

🐛 Bug Report: #874

huicewang opened this issue Mar 7, 2024 · 0 comments

Comments

@huicewang
Copy link

📜 Description

The error message displayed in the system terminal when embedding the uploaded document:

127.0.0.1 - - [07/Mar/2024 23:42:30] "GET /api/task_status?task_id=c7e4676f-4429-48d9-b824-4c4c7aa046c7 HTTP/1.1" 500 -
[2024-03-07 23:42:33,259] ERROR in app: Exception on /api/task_status [GET]
Traceback (most recent call last):
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\app.py", line 1463, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\app.py", line 873, in full_dispatch_request
return self.finalize_request(rv)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\app.py", line 892, in finalize_request
response = self.make_response(rv)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\app.py", line 1183, in make_response
rv = self.json.response(rv)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\json\provider.py", line 214, in response
f"{self.dumps(obj, **dump_args)}\n", mimetype=self.mimetype
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\json\provider.py", line 179, in dumps
return json.dumps(obj, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 238, in dumps
**kw).encode(obj)
^^^^^^^^^^^
File "C:\Users\86134\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\86134\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 258, in iterencode
return _iterencode(o, 0)
^^^^^^^^^^^^^^^^^
File "C:\Users\86134\Desktop\workspace\DocsGPT\venv\Lib\site-packages\flask\json\provider.py", line 121, in _default
raise TypeError(f"Object of type {type(o).name} is not JSON serializable")
TypeError: Object of type IndexError is not JSON serializable
大模型资料文档 .docx

👟 Reproduction steps

upload file

👍 Expected behavior

successfully

👎 Actual Behavior with Screenshots

error

💻 Operating system

Windows

What browsers are you seeing the problem on?

Chrome

🤖 What development environment are you experiencing this bug on?

Docker

🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)

No response

📃 Provide any additional context for the Bug.

No response

📖 Relevant log output

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🔗 Are you willing to submit PR?

None

🧑‍⚖️ Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant