ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: ragflow request api bug

Open lvyoudashuju opened this issue 1 year ago • 6 comments

Describe your problem

When using HTTP API, the error is reported as shown in the figure: image

lvyoudashuju avatar Nov 06 '24 05:11 lvyoudashuju

Your authorization is wrong. Should be Bearer xxxx

Feiue avatar Nov 07 '24 03:11 Feiue

Thanks.But there is a problem with the documentation 企业微信截图_17309564121944

lvyoudashuju avatar Nov 07 '24 05:11 lvyoudashuju

Sorry. I will update it.

Feiue avatar Nov 07 '24 05:11 Feiue

hi,could you share your python file using HTTP API?

Remember12344 avatar Nov 09 '24 13:11 Remember12344

how you solve the login issue when you using http API? I can't obtain the response data. please help me! thanks.

Remember12344 avatar Nov 10 '24 13:11 Remember12344

how you solve the login issue when you using http API? I can't obtain the response data. please help me! thanks.↳

@Remember12344 HTTP API format should be requests.post(url=api_url + path, json=json, headers={"Authorization": "Bearer ragflow-xxx", "Content-Type":"application/json"})

Feiue avatar Nov 11 '24 03:11 Feiue