TwitchLib / TwitchLib.PubSub

PubSub component of TwitchLib.
38 stars 51 forks source link

pubsub client hangs after receiving json #52

Closed DarkoreXOR closed 3 years ago

DarkoreXOR commented 4 years ago

Twitch custom reward cancellation causes this json message and client hangs

JSON

{"type":"MESSAGE","data":{"topic":"community-points-channel-v1.116839581","message":"{\"type\":\"update-redemption-statuses-progress\",\"data\":{\"timestamp\":\"2020-05-31T15:07:17.696051946Z\",\"progress\":{\"id\":\"Y29wb0J1bGtFZGl0UmVkZW1wdGlvblN0YXR1c1Byb2dyZXNzOjExNjgzOTU4MTpCVUxLX0VESVRfUkVERU1QVElPTl9TVEFUVVNfTUVUSE9EX0JZX1JFV0FSRDo5MzYzOWQxOC02YjUxLTRjYTktYjRhZi0xMDRjYTQzNzg3NzA=\",\"channel_id\":\"116839581\",\"reward_id\":\"93639d18-6b51-4ca9-b4af-104ca4378770\",\"method\":\"BY_REWARD\",\"new_status\":\"CANCELED\",\"processed\":0,\"total\":0}}}"}}
JayJay1989 commented 4 years ago

I'll look inti this. Thank you for the report

DarkoreXOR commented 4 years ago

It happens here http://prntscr.com/sr74dt when Type == CommunityPointsChannelType.RewardRedeemed and it can't select tokens. There are new types I received:

one more json with update-redemption-statuses-finished

{"type":"MESSAGE","data":{"topic":"community-points-channel-v1.116839581","message":"{\"type\":\"update-redemption-statuses-finished\",\"data\":{\"timestamp\":\"2020-05-31T17:06:43.471336156Z\",\"progress\":{\"id\":\"Y29wb0J1bGtFZGl0UmVkZW1wdGlvblN0YXR1c1Byb2dyZXNzOjExNjgzOTU4MTpCVUxLX0VESVRfUkVERU1QVElPTl9TVEFUVVNfTUVUSE9EX0JZX1JFV0FSRDo5MzYzOWQxOC02YjUxLTRjYTktYjRhZi0xMDRjYTQzNzg3NzA=\",\"channel_id\":\"116839581\",\"reward_id\":\"93639d18-6b51-4ca9-b4af-104ca4378770\",\"method\":\"BY_REWARD\",\"new_status\":\"CANCELED\",\"processed\":1,\"total\":1}}}"}}
JayJay1989 commented 4 years ago

thanks for the new payload. will create a new pr in a few moments to fix this

swiftyspiffy commented 3 years ago

This looks to have been resolved by Jay's commit. Closing. Feel free to reopen if needed.