question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fatal error when creating new MqttClient

See original GitHub issue

Trying to do an extremely basic demo… thing is created using other calls, and then…

const configBuilder = iotsdk.iot.AwsIotMqttConnectionConfigBuilder.new_mtls_builder(
  thing.certificatePem,
  thing.certificateKeyPair.PrivateKey
)
configBuilder.with_client_id(thing.thingName);
configBuilder.with_endpoint(thing.iotDataEndpoint)
const config = configBuilder.build();

const client = new iotsdk.mqtt.MqttClient();
const connection = client.new_connection(config);

Error:

/iotErrorProject/node_modules/aws-crt/dist/native/mqtt.js:61
        super(binding_1.default.mqtt_client_new(bootstrap.native_handle()));

I don’t see how this demo ever works, since bootstrap is not defined? https://github.com/aws/aws-iot-device-sdk-js-v2/blob/916eb692de7f6df9368324b34be71f67304c636c/samples/util/cli_args.js#L198

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bretambrosecommented, Oct 25, 2021

We recently updated the samples and CRT to not require the bootstrap, but we haven’t done a new release of the SDK yet so essentially the SDK samples are a little bit ahead of the pinned API. We’re planning to do a release soon with a lot of documentation improvements and updates so everything will be in sync then. In the meantime, just use the sample code from the latest release rather than what’s at the head of main.

0reactions
Meekohicommented, Oct 25, 2021

No worries, thanks for your quick response!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upon running a C++ script with AWS IoT Core, I get a fatal ...
Upon running a C++ script with AWS IoT Core, I get a fatal error. I am relatively new to C++ and IoT Core...
Read more >
How to fix this ? fatal error: 'MQTTClient/MQTTClient.h' file not ...
A community for learning and developing native mobile applications ... on Garuda I get an error saying it couldn't apply the transaction.
Read more >
MQTT Client Support - mangOH Green
I have pushed a new branch to https://github.com/mangOH/MqttClient named use_paho_linux_version. This branch implements a Legato app ...
Read more >
GVM 22.4.0 documentation not ready?
Configuring done -- Generating done -- Build files have been written to: ... fatal error: MQTTClient.h: No such file or directory 28 ......
Read more >
Solved: PSoC 6 MQTT-client template fails build. Mutlipe n...
Solved: I am trying to use the MQTT-client template but it gives me multiple errors when i build without even making any changes....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found