Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Websockets error 401

    Posted 06-05-2025 18:21

    Taras | 2022-02-11 20:57:59 UTC | #1

    Hi,

    I've created a new channel with few topics. After 24 hours updated with new subscriptions. Expiry date updated as well. After few hours continuously receiving error: 'The server returned status code '401' when status code '101' was expected.' ClientId b31ed2b0-9b03-4936-aad8-8b96102bc7c4. Channel wss://streaming.mypurecloud.ie/channels/streaming-3-pol5d710jkuuf0po***

    Its clear for me that I can create a new channel. How long can I reuse previously created channel? Do you have any limitations?

    Best regards, Taras


    anon11147534 | 2022-02-14 09:05:36 UTC | #2

    Hi,

    Channels have a 24 hour lifespan, see usage limitations for more info. The 401 status code isn't documented so that's strange, if you think you are receiving it in error then please create a ticket with Genesys Cloud Care.


    Taras | 2022-02-14 12:33:58 UTC | #3

    Hi Ronan, Thanks for the reply.

    Its clear for me about 24 hour lifespan. Here is my use case: I created a new channel, everything is fine. After 24 hours I resubscribed to the topics, its fine. After 48 hours on the same channel I resubscribed to the topics but can't see any notifications.

    I'm just trying to figure out if its possible to use just one channel and to resubscribe every 24 hours. Seems like it is not possible.

    Best regards, Taras


    anon11147534 | 2022-02-15 08:54:56 UTC | #4

    According to the documentation, you are doing the right thing by resubscribing every 24 hours. If that's not working as intended I would suggest creating a new channel every 24 or 48 hours and reporting this issue to Care


    Taras | 2022-02-16 15:27:35 UTC | #5

    I reported this issue, waiting for the reply. Also, want to share with another situation. Channel HEAD request gives me response 200 OK. Channels Get with includechannels=oauthclient gives empty response. How its possible?


    anon11147534 | 2022-02-17 08:48:19 UTC | #6

    You must be using the same access token that you used to create the channel when making that request


    Taras | 2022-02-18 10:07:48 UTC | #7

    After 24 hours token will be expired. So I need to create a new token with same client credentials. After 24 hours With new token: HEAD request gives 200 OK. Get with includechannels=oauthclient gives channel just with hidden Id, its ok After 48 hours HEAD request gives 200 OK. Get with includechannels=oauthclient gives empty list After 48 hours its a strange behavior when HEAD gives 200 OK, means what?


    system | 2022-03-21 10:08:22 UTC | #8

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


    This post was migrated from the old Developer Forum.

    ref: 13566