Forum Discussion

KevinChen0512's avatar
KevinChen0512
Copper Contributor
May 10, 2024

Listing tabs in a channel encounters "Value cannot be null. (Parameter 'stringToUnescape')" error

Hi,

 

We use the List tabs in channel API in our product, and it works fine for all cases, except one.

We notice that when sending this API with one of our customer's channel, we will get the following response: 

 

{
    "error": {
        "code": "BadRequest",
        "message": "Value cannot be null. (Parameter 'stringToUnescape')",
        "innerError": {
            "code": "InvalidRequest",
            "message": "Value cannot be null. (Parameter 'stringToUnescape')",
            "details": [],
            "date": "2024-05-10T01:38:38",
            "request-id": "10e6b074-a2dc-4950-aae5-8bbe68d838b8",
            "client-request-id": "10e6b074-a2dc-4950-aae5-8bbe68d838b8"
        }
    }
}

 

No matter we tried how many times, this error persists.

For comparison, if we send the same API on another channel, we can get correct response.

 

Do anyone also encounter this error?

We hope Microsoft could help us figure out why and how we can handle this case.

 

Thank you.

  • Nils_Goldkuhle's avatar
    Nils_Goldkuhle
    Copper Contributor

    KevinChen0512 

     

    I found a solution for that issue. It turns out you have to check the affected teams channel for a "null" tab. For me, the general channel had a "Posts" "Files" and "null" tab. Remove the "null" tab and you are good to go.

Resources