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.

Sample browser/pub_sub erroneous

See original GitHub issue

Describe the issue

I copied the code from index.ts and installed two packages needed

"aws-iot-device-sdk-v2": "^1.8.11",
"aws-sdk": "^2.1267.0",

In this code, the iot and auth variables, which are imported from aws-iot-device-sdk-v2 library, are missused.

In the code:

  • auth uses properties which do not exist on its interface auth.CredentialsProvider and auth.AWSCredentials
  • iot.AwsIotMqttConnectionConfigBuilder uses function iot.AwsIotMqttConnectionConfigBuilder.new_builder_for_websocket() which does not exist on its interface

Links

https://github.com/aws/aws-iot-device-sdk-js-v2/tree/main/samples/browser/pub_sub

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bretambrosecommented, Dec 6, 2022

It seems like we definitely need a “How to consume from the browser” guide or section in the readme. None of this obvious.

1reaction
bretambrosecommented, Dec 6, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Subscribe with error listener | Cloud Pub/Sub Documentation
Handles errors when subscribing throws an error. Explore further. For detailed documentation that includes this code sample, see the following:.
Read more >
node.js - Google Cloud Pub/Sup API: Almost 100% Errors on ...
I'm trying to use GCP Pub/Sub StreamingPull using the NodeJs client and I understand that the pub sub is designed for 100% error...
Read more >
pubsub-js - npm
PubSubJS is a topic-based publish/subscribe library written in JavaScript. PubSubJS has synchronisation decoupling, so topics are published ...
Read more >
Browser client - Faye: Simple pub/sub messaging for the web
For example, this will make the client try to deliver the message up to 3 times: ... Bear in mind that error detection...
Read more >
Server Error when running PubSub sample #607 - GitHub
I followed the README at https://github.com/GoogleCloudPlatform/nodejs-docs-samples/appengine/pubsub/ After deploying to App Engine standard ...
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