Can not subscribe to a reserved topic
See original GitHub issueHi, I am trying to subscribe a topic from a web app and get an error message "Uncaught cannot subscribe to topic array since one of them is a reserved topic ‘$aws/things/xxxxxxxxxxxxxxxxx/shadow/get/accepted’. Here is my code:
this.thingShadow.on("connect", () => { this.thingShadow.subscribe(["$aws/things/xxxxxxxxxxxxxxxxx/shadow/get/accepted"], {}, (error: any) => { console.log("subscribe ", error); });
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Reserved topics - AWS IoT Core
Unsupported publish or subscribe operations to reserved topics can result in a terminated connection.
Read more >Cannot publish to reserved topic using AWS IoT SDK
By looking at the source code of the SDK, I see that it is not possible to publish on a reserved topic using...
Read more >Reserved topics - Amazon IoT Core - 亚马逊云科技
You can subscribe and publish to these reserved topics as they allow; however, you can't create new topics that begin with a dollar...
Read more >Reserved Topics - Solace
Indicates that this subscription is not to be advertised (exported) by the local node (through MNR or DMR) to other nodes in the...
Read more >MQTT Topics, Wildcards, & Best Practices - HiveMQ
A wildcard can only be used to subscribe to topics, not to ... The $-symbol topics are reserved for internal statistics of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi, Thanks for the advice. I have moved to use aws/aws-sdk-js a while back. FYI, the web app is not on the Iot Device. I tried to subscribe to the iot server in a hope of getting notifications whenever the iot Device pushes an update to the server
@bentranmyriota, is this a web app that is on the IoT device? If not, it is probably best to use aws/aws-sdk-js and its IotData API. From that you can use getThingShadow() to retrieve the shadow
Hope that helps as well!