# No response from PubSub servers

**URL:** <https://discuss.dev.twitch.com/t/no-response-from-pubsub-servers/23820>\
**Category:** API\
**Created:** [January 21, 2020, 6:17am UTC](https://discuss.dev.twitch.com/t/no-response-from-pubsub-servers/23820 "2020-01-21T06:17:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YummyCrayons](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/yummycrayons/32/7702_2.png) [@YummyCrayons](https://discuss.dev.twitch.com/u/YummyCrayons)\
**Post date:** [January 21, 2020, 6:17am UTC](https://discuss.dev.twitch.com/t/no-response-from-pubsub-servers/23820/1 "2020-01-21T06:17:54Z")

</div>

I’ve been attempting to connect to pubsub servers in order to listen in on channel points redemptions, but I haven’t been able to get a single response from a server. I send a request, await a response, but nothing happens until eventually it crashes. I’ve been stumped on this for a while. Here is my (python) code:

![file](https://d2opxh93rbxzdn.cloudfront.net/original/2X/a/acab13a5dc3eb074d9a85b57db64554decc17e6c.png)

I’m a beginner to everything to do with twitch API, but I’ve read the entire documentation for PubSub several times, so I’d appreciate any help.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 21, 2020, 10:33am UTC](https://discuss.dev.twitch.com/t/no-response-from-pubsub-servers/23820/2 "2020-01-21T10:33:36Z")

</div>

You need to JSON Encode your `request` before you `websocket.send`

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [February 20, 2020, 10:33am UTC](https://discuss.dev.twitch.com/t/no-response-from-pubsub-servers/23820/3 "2020-02-20T10:33:37Z")

</div>

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