Skip to content

Seems a Bug; TypeError: Cannot read properties of null (reading 'token') #9

@colegatron

Description

@colegatron

versão da evolution-api utilizada: 2.2.0
integração: Baileys
versão do Python: 3.8.20

When trying to send a message from python back to my phone I get an error.
Checked and the token is sent properly.

`
evocli = EvolutionClient( base_url=settings.EVOLUTION_URL, api_token=settings.EVOLUTION_APITOKEN )

message = TextMessage(
    number="34XXXXXXX",
    text="Olá, como você está?",
    delay=1000  # delay opcional em ms
)
response = evocli.messages.send_text(settings.EVOLUTION_INSTANCE_ID, message, settings.EVOLUTION_INSTANCE_TOKEN)
`

I get the error:

[Evolution API]  [IvanPhone]  v2.2.0  163   -  Wed Mar 26 2025 10:57:51     LOG   [ChannelStartupService]  [string]  Update messages [
  {
    "key": {
      "remoteJid": "34XXXXXXXX:4@s.whatsapp.net",
      "id": "177C32FB0F9307E85FEA3E7C6044B3F8",
      "fromMe": true
    },
    "update": {
      "status": 3
    }
  }
] 
[Evolution API]    v2.2.0  163   -  Wed Mar 26 2025 10:57:56     ERROR   [GUARD]  [object]   
TypeError: Cannot read properties of null (reading 'token')
    at Op (/evolution/dist/main.js:282:59650) 

Seems a bug, but can't debug evolution-cli myself.

Thanks for any clue on fixing that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions