Não aparece a caixa de entrada no chatwoot criado no manager v1.5.2
Bom dia @DavidsonGomes, quando crio a caixa de entrada pelo manager, não aparece no chatwoot. Tento criar por fora tbm não está aparecendo. Estou usando a v.1.5.2
Hi there! same issue here.
After running this: {{baseUrl}}/instance/create
With this body:
{
"instanceName": "{{instanceChatwoot}}",
"token": "123456",
"qrcode": true,
"chatwoot_account_id": {{ChatwootID}},
"chatwoot_token": "{{tokenChatwoot}}",
"chatwoot_url": "{{ChatwootUrl}}",
"chatwoot_sign_msg": true,
"chatwoot_reopen_conversation": true,
"chatwoot_conversation_pending": false
}
I get this message:
And this result:
{
"instance": {
"instanceName": "instanceChatwoot",
"status": "created"
},
"hash": {
"apikey": "123456"
},
"webhook": {},
"websocket": {},
"rabbitmq": {},
"typebot": {
"enabled": false
},
"settings": {
"reject_call": false,
"msg_call": "",
"groups_ignore": false,
"always_online": false,
"read_messages": false,
"read_status": false
},
"chatwoot": {
"enabled": true,
"account_id": 1,
"token": "8X8rayepXgZj6rUdoiSW9teg",
"url": "https://chatwooturl.me",
"sign_msg": true,
"reopen_conversation": true,
"conversation_pending": false,
"name_inbox": "instanceChatwoot",
"webhook_url": "https://evolutionapiurl.me/chatwoot/webhook/instanceChatwoot"
}
}
However, not inbox it's being generated on chatwoot.
And what is more strange, if I run this method {{baseUrl}}/instance/fetchInstances, I didn't receive the new instance created for chatwoot. It seems that there could be something wrong with that method.
Same error here!
Quite strange. Let wait for someone to help.
I´m solved setting underscores_in_headers on in NGINX config.
I´m solved setting underscores_in_headers on in NGINX config.
I'm not using NGINX, in fact im using reverse proxy on my NAS. could you give me more information about your solution?
@DavidsonGomes, now i realise the logs of EVOLUTION API with this error on the communication with Chatwoot, but I can not understand the error and possible solution.
[Evolution API] v1.5.4 1 - Fri Oct 13 2023 12:12:00 ERROR [unhandledRejection] [object]
{
origin: Promise {
<rejected> ApiError: Unauthorized
at catchErrorCodes (/evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:226:15)
at /evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:257:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
url: 'https://chatwoot.mydns.me/api/v1/accounts/1/inboxes',
status: 401,
statusText: 'Unauthorized',
body: [Object],
request: [Object]
}
},
stderr: 2,
error: ApiError: Unauthorized
at catchErrorCodes (/evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:226:15)
at /evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:257:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
url: 'https://chatwoot.mydns.me/api/v1/accounts/1/inboxes',
status: 401,
statusText: 'Unauthorized',
body: { errors: [Array] },
request: {
method: 'GET',
url: '/api/v1/accounts/{account_id}/inboxes',
path: [Object],
errors: [Object]
}
}
}
And this is the log from the side of Chatwoot:
I, [2023-10-13T15:42:00.039738 #1] INFO -- : source=rack-timeout id=9ab6a479-dfd5-4406-a97a-a047b9e5ed88 timeout=15000ms state=ready
I, [2023-10-13T15:42:00.040583 #1] INFO -- : [9ab6a479-dfd5-4406-a97a-a047b9e5ed88] Started GET "/api/v1/accounts/1/inboxes" for 213.194.161.120 at 2023-10-13 15:42:00 +0000
I, [2023-10-13T15:42:00.043543 #1] INFO -- : [9ab6a479-dfd5-4406-a97a-a047b9e5ed88] Processing by Api::V1::Accounts::InboxesController#index as JSON
I, [2023-10-13T15:42:00.043621 #1] INFO -- : [9ab6a479-dfd5-4406-a97a-a047b9e5ed88] Parameters: {"account_id"=>"1"}
I, [2023-10-13T15:42:00.044892 #1] INFO -- : [9ab6a479-dfd5-4406-a97a-a047b9e5ed88] Filter chain halted as :authenticate_user! rendered or redirected
I, [2023-10-13T15:42:00.045073 #1] INFO -- : [9ab6a479-dfd5-4406-a97a-a047b9e5ed88] Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 339)
I, [2023-10-13T15:42:00.045336 #1] INFO -- : source=rack-timeout id=9ab6a479-dfd5-4406-a97a-a047b9e5ed88 timeout=15000ms service=6ms state=completed