Update existing subscription get unknown error

Hi, I use checkout api create a new subscription. Then update this existing subscription to a new plan.
Here is the code:

Summary

session = stripe.billing_portal.Session.create( customer='{{CUSTOMER_ID}}', return_url="https://example.com/account/overview", flow_data={ "type": "subscription_update_confirm", "subscription_update_confirm": { "subscription": '{{SUBSCRIPTION_ID}}', "items": [ { "id": '{{SUBSCRIPTION_ITEM_ID}}', "quantity": 1, "price": '{{PRICE_ID}}', }, ] }, }, )

And It always shows an error: “Something went wrong”.

Could you tell me what this error is and how to resolve it?


update: We got error when show something went wrong error