I get a white screen when sending a request to the API posts/ephemeral message

I created a message translation chatbot using the Reaction icon flag and responded with an ephemeral message. It worked well on Mattermost Version 7.8.2. However, after upgrading to Mattermost Version 9.11.5, the screen turned white, and I had to reload the Mattermost desktop.

After investigation, I found that the issue lies with sending the API post ephemeral. The API template is as follows:

import requests

url = "https://mattermostlink.linkl/mattermost/api/v4/posts/ephemeral"

payload = {
    "user_id": "ud4ng3414pbufbr773o4138azy",
    "post": {
        "message": "string",
        "root_id": "hrr6wmsk3iridpzwuamixdo33r"
    }
}

headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer 6a3gea7qabfm9rsg9aqrra1w4r"
}

response = requests.post(url, json=payload, headers=headers, verify=False)

print(response.json())

This is what I received when sending the request:

{'id': 'dmsfgjd6ejd95fomjafibtq38e', 'create_at': 1748337818336, 'update_at': 0, 'edit_at': 0, 'delete_at': 0, 'is_pinned': False, 'user_id': 'bmzzxasjwpdxf83iwhxo6bqhyc', 'channel_id': '', 'root_id': 'hrr6wmsk3iridpzwuamixdo33r', 'original_id': '', 'message': 'striaa ng', 'type': 'system_ephemeral', 'props': {}, 'hashtags': '', 'pending_post_id': '', 'reply_count': 0, 'last_reply_at': 0, 'participants': None, 'metadata': {}}`

How can I fix this issue? The problem relates to root_id. For messages that need to be replied to, the root_id must be present. However, in the new version, this causes the screen to turn white. Please help me.
For non-ephemeral messages, the root_id normally.

Did you upgrade directly from 7.8.2 to 9.11? Our guidance is to go ESR to ESR… you should have gone to 8.1, then 9.5, then 9.11, then 10.5 Version Archive - Mattermost documentation gives links to all versions.

If you restore your 7.8.2 and go through this process, I suspect your issue will be resolved.

I updated from 7.8 ⇒ 8.1.8 ⇒ 9.11.5.
I just reverted and updated as you instructed 8.1 ⇒ 9.5 ⇒ 9.11 ⇒ 10.5, but the issue is still not resolved.

Hmm. Does the issue exist in all of those versions? Knowing when it shows up might help.

Another possible resource is Mattermost