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]: http api,Import empty-csv return error_code = 0 , but import empty_fvecs return error_code = 3037 #1033

Closed
1 task done
TiNnNnnn opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TiNnNnnn
Copy link
Contributor

TiNnNnnn commented Apr 17, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

1d3a04c

Other environment information

Linux ubuntu23.04

Actual behavior

Import empty-csv return error_code = 0 , but import empty_fvecs return error_code = 3037

Expected behavior

both return no error or both return error_message

Steps to reproduce

in file test_import.py, you can run test_import_empty_file_fvecs with resp: error_code = 3037(errorImportFormat) , and run test_import_empty_file_csv with resp: error_code=0

Additional information

No response

@TiNnNnnn TiNnNnnn added the bug Something isn't working label Apr 17, 2024
JinHai-CN pushed a commit that referenced this issue Apr 17, 2024
### What problem does this PR solve?

Refactor HTTP test and fix bugs.
Things have done:
1. modify http_server to return error_code back to client and set HTTP
status.
2. fix error string parameters parse in http_server.
3. format HTTP test code.

Issue link:#1022, #1024, #1025, #1033

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Refactoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant