# Error API knowledge-bank

**URL:** <https://forum.convai.com/t/error-api-knowledge-bank/2011>\
**Category:** Knowledge Bank\
**Tags:** question, knowledge-bank\
**Created:** [October 27, 2024, 4:26pm UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011 "2024-10-27T16:26:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 27, 2024, 4:26pm UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011/1 "2024-10-27T16:26:20Z")

</div>

**Original Discord Post by josegarciacordoba | 2024-10-27 16:26:20**

import requests  
import json

headers = {  
‘CONVAI-API-KEY’: ‘#MyKey’,  
‘Content-Type’: ‘application/json’  
}

# Create a dictionary for the JSON payload

payload = {  
“document\_id”: “#ID”  
}

# Convert the payload to JSON

json\_payload = json.dumps(payload)

response = requests.post(url, headers=headers, data=json\_payload)

print(response.text)

The Python example doesn’t work.

Gives error: {“ERROR”: “Error in loading knowldege bank: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.”}

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 27, 2024, 5:42pm UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011/2 "2024-10-27T17:42:26Z")

</div>

**Reply by josegarciacordoba | 2024-10-27 17:42:26**

The list and delete functionality doesn’t work.

I’ve also tried it with Postman

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 9:21am UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011/3 "2024-10-28T09:21:19Z")

</div>

**Reply by k3kalinix | 2024-10-28 09:21:19**

I’ve informed my teammates. We’ll get back to you.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 9:19pm UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011/4 "2024-10-28T21:19:52Z")

</div>

**Reply by sconvai | 2024-10-28 21:19:52**

\<@992368851234869308\> : I have confirmed that the list API is working as per the documentation. Can you please list the python program you are trying.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 9:28pm UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011/5 "2024-10-28T21:28:43Z")

</div>

**Reply by sconvai | 2024-10-28 21:28:43**

\<@992368851234869308\> : I found bug with delete API call. I have fixed that. Please try again.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 25, 2024, 12:14pm UTC](https://forum.convai.com/t/error-api-knowledge-bank/2011/6 "2024-11-25T12:14:09Z")

</div>

This conversation happened on the Convai Discord Server, so this post will be closed.
