Channel redeem receive problem

I’m using tes.js to subscribe to the ‘channel.channel_points_custom_reward_redemption.add’ eventsub type.

However, I’ve noticed that if the title, prompt, or user_input contains the ‘&’ symbol, there is no way to receive the data.

I’m utilizing the feature to receive URLs, with the following results:
example[dot]com/?qs1=1 → success
example[dot]com/?qs1=1&qs2=2 → failed.

Could someone please assist me with this issue? Thanks.

I tested this:

"event":{
"broadcaster_user_id":"15185913",
"broadcaster_user_login":"barrycarlyon",
"broadcaster_user_name":"BarryCarlyon",
"id":"d610f051-4614-452c-bd6e-3912f1d845f4",
"user_id":"15185913",
"user_login":"barrycarlyon",
"user_name":"BarryCarlyon",
"user_input":"example.com/?qs1=1&qs2=2 ",
"status":"unfulfilled",
"redeemed_at":"2023-12-14T12:01:53.589570394Z",
"reward":{
"id":"328dc19b-f21a-4434-a315-eece61646935",
"title":"testToday",
"prompt":"Cake",
"cost":100
}
}

Works fine for me, RAW “dump” of a recieved HTTP POST.

This would suggest it’s a problem with the library you are using and not with eventsub itself

You’ll probably need to file this with the developers of tes.js so they can investigate and resolve

1 Like

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