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]: {'data': None, 'retcode': 100, 'retmsg': "<MethodNotAllowed '405: Method Not Allowed'>"} #2499

Open
1 task done
Weishaoya opened this issue Sep 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Weishaoya
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

the latest code

Other environment information

os: ubuntu 22.04
The ragflow was running by the source code.

Actual behavior

The official website documentation provides 8 API interfaces, of which I have been able to successfully invoke seven. However, there is one that I am unable to call successfully.

Expected behavior

How can I solve the problem? Thank you.

Steps to reproduce

import requests


doc_name = 'iFA信息系统0812_简.docx'
doc_id = '4b63b464764e11ef9e76d08e79175613'
# params = {'doc_name': doc_name}
params = {'doc_id': doc_id}
get_document_chunks_url = f'http://10.69.84.14:9222/v1/api/list_chunks'
get_document_chunks_response = requests.get(get_document_chunks_url, params=params, 
                                             headers={'Authorization':'Bearer ragflow-VkZTVlYWY2NzU4OTExZWY5Njc2ZDA4ZT'}).json()
print('='*100)
print('api接口: ', get_document_chunks_url, '\n', get_document_chunks_response)

output:
api接口:  http://10.69.84.14:9222/v1/api/list_chunks 
 {'data': None, 'retcode': 100, 'retmsg': "<MethodNotAllowed '405: Method Not Allowed'>"}

Additional information

No response

@Weishaoya Weishaoya added the bug Something isn't working label Sep 19, 2024
@KevinHuSh
Copy link
Collaborator

It's POST method.

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

3 participants
@KevinHuSh @Weishaoya and others