Hi, I have this code in python and I would like to know if anyone has any idea why I get this error.
def get_all_extensions() -> list:
urlUpdate = os.environ.get('URL_GET_PLANTA')
bodyGraph = '''
{
fetchAllExtensions {
status
totalCount
extension {
id
extensionId
user {
name
extPassword
outboundCid
}
}
}
}
'''
hed = {'Authorization': 'Bearer ' + obtener_token()}
response = requests.post(url=urlUpdate, json={"query": bodyGraph}, headers=hed)
data = response.json()
return data['data']['fetchAllExtensions']['extension']
{
“errors”: [
{
“message”: “Cannot query field "fetchAllExtensions" on type "Query".”,
“status”: false
}
]
}