Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect failed! - in react native - AMQJS0007E #91

Open
jeebendu opened this issue Apr 28, 2023 · 1 comment
Open

Connect failed! - in react native - AMQJS0007E #91

jeebendu opened this issue Apr 28, 2023 · 1 comment
Assignees

Comments

@jeebendu
Copy link

trying to use MQTT code in react native from the example provided

const options = {
host: 'broker.emqx.io',
port: 8083,
path: '/testTopic',
id: 'id_' + parseInt(Math.random()*100000)
};

Its returning me the error
Connect failed!
{"errorCode": 7, "errorMessage": "AMQJS0007E Socket error:undefined.", "invocationContext": undefined}

what could be the issue ?

@zibuyu1995 zibuyu1995 assigned 0721Betty and oucb and unassigned 0721Betty May 5, 2023
@oucb
Copy link
Member

oucb commented May 6, 2023

Please check whether the version of each package is consistent with that of package.json, especially react-native and react_native_mqtt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants