Hey <@980954483293028412> <@786048611967696906> I ...
# đź’»developers
g
Hey @crooked-van-25152 @acceptable-kangaroo-64719 I am trying to send an event to the botpress client via a custom integration, just like how Send Custom Event works but I am getting the error below, any reason what could cause it:
Copy code
Invoke Error     {"message":"Request failed with status code 401","name":"AxiosError","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","x-bp-messaging-client-id":"0e46922c-1f42-43cc-8bb0-cad4a3d3d4cc","x-bp-messaging-client-token":"0e46922c-1f42-43cc-8bb0-cad4a3d3d4cc","User-Agent":"axios/0.27.2","Content-Length":270},"baseURL":"https://messaging.botpress.cloud/api/v1","method":"post","url":"/messages","data":"{\"conversationId\":\"d42854a6-c222-4871-928b-590aecb14521\",\"authorId\":\"0e46922c-1f42-43cc-8bb0-cad4a3d3d4cc\",\"payload\":{\"type\":\"trigger\",\"trigger\":{\"type\":\"custom-event\",\"event\":{\"link\":\"https://studio.botpress.cloud/0e46922c-1f42-43cc-8bb0-cad4a3d3d4cc/flows/wf-main\"}}}}"},"code":"ERR_BAD_REQUEST","status":401}