# Failure to add topic after authenticating to pubsub

**URL:** <https://staging-discuss.dev.twitch.com/t/failure-to-add-topic-after-authenticating-to-pubsub/33436>\
**Category:** API\
**Created:** [September 8, 2021, 9:31pm UTC](https://staging-discuss.dev.twitch.com/t/failure-to-add-topic-after-authenticating-to-pubsub/33436 "2021-09-08T21:31:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![waterflame](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/waterflame/32/13522_2.png) [@waterflame](https://staging-discuss.dev.twitch.com/u/waterflame)\
**Post date:** [September 8, 2021, 9:31pm UTC](https://staging-discuss.dev.twitch.com/t/failure-to-add-topic-after-authenticating-to-pubsub/33436/1 "2021-09-08T21:31:15Z")

</div>

Hello, I’m trying to listen for channel redeems. Though when I do it just returns an empty error. I should have authed for the right scopes.

I could understand a possible error because I my self am not an affiliate so my account doesn’t have the ability for channel points. If that is the case is there by chance a sandbox of sorts where I can play with that? I’m currently trying to design something around channel points.

Upon further testing it doesn’t seem to be the case (possibly). When I tried to listen to the `user-moderation-notifications` topic I received the same error message. Am I doing something wrong? I’m currently using the sample code found here for testing - [https://github.com/twitchdev/pubsub-javascript-sample](https://github.com/twitchdev/pubsub-javascript-sample)

```auto
example auth token: 123
my user id: 253634072
redirected url: http://localhost:8000/#access_token=123&scope=chat%3Aread+channel%3Aread%3Aredemptions&state=_&token_type=bearer

INFO: Socket Opened
SENT: {"type":"PING"}
RECV: {"type":"PONG"}
SENT: {"type":"LISTEN","nonce":"LPD2xkos0Ey0Em7","data":{"topics":["channel-points-channel-v1.253634072"],"auth_token":"123"}}
RECV: {"type":"RESPONSE","error":"","nonce":"LPD2xkos0Ey0Em7"}

INFO: Socket Opened
SENT: {"type":"PING"}
RECV: {"type":"PONG"}
SENT: {"type":"LISTEN","nonce":"Swt3hEdg7UUP7UL","data":{"topics":["user-moderation-notifications.253634072"],"auth_token":"123"}}
RECV: {"type":"RESPONSE","error":"","nonce":"Swt3hEdg7UUP7UL"}

```

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [September 8, 2021, 9:32pm UTC](https://staging-discuss.dev.twitch.com/t/failure-to-add-topic-after-authenticating-to-pubsub/33436/2 "2021-09-08T21:32:20Z")

</div>

Empty error = you subscribed correctly - there was no error

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [October 8, 2021, 9:33pm UTC](https://staging-discuss.dev.twitch.com/t/failure-to-add-topic-after-authenticating-to-pubsub/33436/3 "2021-10-08T21:33:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
