fbchat-dev / fbchat-dev/fbchat

MQTT connection failed

Open
#585 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

## Description of the problem
When trying to run the echo bot example I'm getting:
fbchat._exception.FBchatException: MQTT connection failed

## Code to reproduce
https://fbchat.readthedocs.io/en/stable/examples.html#echobot

## Traceback
```
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/peter/PycharmProjects/shrek_messenger/echo.py", line 22, in
client.listen()
File "/Users/peter/PycharmProjects/shrek_messenger/venv/lib/python3.7/site-packages/fbchat/_client.py", line 2883, in listen
self.startListening()
File "/Users/peter/PycharmProjects/shrek_messenger/venv/lib/python3.7/site-packages/fbchat/_client.py", line 2835, in startListening
foreground=True,
File "/Users/peter/PycharmProjects/shrek_messenger/venv/lib/python3.7/site-packages/fbchat/_mqtt.py", line 65, in connect
raise _exception.FBchatException("MQTT connection failed")
fbchat._exception.FBchatException: MQTT connection failed
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.