Skip to content

Update Typebot Status (http request) session closed or deleted #1390

@fabiofrances

Description

@fabiofrances

Welcome!

  • Yes, I have searched for similar issues on GitHub and found none.

What did you do?

I have the following scenario.
DNS on cloudflare with proxy enabled
evolution API behind a reverse proxy with nginx.
Evolution API running in a docker swarm environment version 28.0.4
docker
When sending via webhook/http request the typebot status update to pause it, it pauses and after a few seconds the connection is deleted.
As per the video.
I tested in versions 2.2.1, 2.2.2 and 2.2.3

What did you expect?

I would like the connection not to be deleted and the bot paused, so it would not interfere with the conversation with the attendant after the bot ends.

What did you observe instead of what you expected?

I observed that typebot instance is deleted not paused.
Conform attachament.

Screenshots/Videos

evolition_typebot_status.mp4

Image

Image

Which version of the API are you using?

I tested on these versions:
v2.2.1
v2.2.2
v2.2.3

What is your environment?

Docker

Other environment specifications

My environment:

Proxmox VE 8.4.1
SO: Debian 12
Docker version 28.0.4
behind nginx reverse proxy 1.22

If applicable, paste the log output

I did not detect any abnormality or error in the log of either nginx or the service.

evolution_apiv2.1.chzieycknadp@manager1 | [Evolution API] [sati] v2.2.2 163 - Mon Apr 21 2025 15:48:14 LOG [ChannelStartupService] [string] Update messages [
evolution_apiv2.1.chzieycknadp@manager1 | {
evolution_apiv2.1.chzieycknadp@manager1 | "key": {
evolution_apiv2.1.chzieycknadp@manager1 | "remoteJid": "omitido@s.whatsapp.net",
evolution_apiv2.1.chzieycknadp@manager1 | "id": "3EB00F93CC0D8AB3F94079BE1971A007A6C0D9AA",
evolution_apiv2.1.chzieycknadp@manager1 | "fromMe": true
evolution_apiv2.1.chzieycknadp@manager1 | },
evolution_apiv2.1.chzieycknadp@manager1 | "update": {
evolution_apiv2.1.chzieycknadp@manager1 | "status": 4
evolution_apiv2.1.chzieycknadp@manager1 | }
evolution_apiv2.1.chzieycknadp@manager1 | }
evolution_apiv2.1.chzieycknadp@manager1 | ]
evolution_apiv2.1.chzieycknadp@manager1 | [Evolution API] v2.2.2 163 - Mon Apr 21 2025 15:48:14 VERBOSE [CacheEngine] [string] RedisCache initialized for Re
evolution_apiv2.1.chzieycknadp@manager1 | [Evolution API] v2.2.2 163 - Mon Apr 21 2025 15:48:14 VERBOSE [CacheService] [string] cacheservice created using cache engine: Vt
evolution_apiv2.1.chzieycknadp@manager1 | [Evolution API] v2.2.2 163 - Mon Apr 21 2025 16:00:00 ERROR [ChatwootImport] [string] Error on import history messages: Error: User not found to import messages.
evolution_apiv2.1.chzieycknadp@manager1 | [Evolution API] v2.2.2 163 - Mon Apr 21 2025 16:30:00 ERROR [ChatwootImport] [string] Error on import history messages: Error: User not found to import messages.

Additional Notes

My nginx .conf file

server {
listen 443 ssl http2;
server_name omitted.com.br;

Certificados SSL emitidos pelo Let's Encrypt

ssl_certificate /etc/letsencrypt/live/omitted/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/omitted/privkey.pem;

Configurações de segurança para SSL

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

Logs de acesso e erro

access_log /var/log/nginx/evoapi.access.log;
error_log /var/log/nginx/evoapi.error.log;

location / {
proxy_pass_header Authorization;
proxy_pass http://myhost:8080;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on; # Optional

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_http_version 1.1;
proxy_buffering off;

client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_redirect off;

}

Página de erro personalizada

error_page 500 502 503 504 /50x.html;
location = /50x.html {
    root /usr/share/nginx/html;
    internal;
}

# Adiciona o e-mail do administrador no cabeçalho HTTP
add_header X-Admin-Email ti@mydomain.com.br;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions