Big threads 502

Hello, need some help

Mattermost 7.1.1
Database Schema Version: 89
DB: mysql

I’ve got problem with big threads:

Failed to load resource: the server responded with a status of 502 ()
{"id":"api.context.404.app_error","message":"Sorry, we could not find the page.","detailed_error":"There doesn't appear to be an api call for the url='/api/v4/posts'.  Typo? are you missing a team_id or user_id as part of the url?","status_code":404}

How can I debug it?
The problem starts when a thread gets anywhere from 30-40 posts.

The problem was that the timeouts (Write, Read, Idle) were set incorrectly. I changed all the values to 300 and the error went away.

Hi @underdark456 , welcome to the Mattermost forums and thanks for providing the solution to your problem!

What were the values before? The default values for these variables are:

# mmctl --local config get ServiceSettings | grep -m3 Timeout
  "ReadTimeout": 300,
  "WriteTimeout": 300,
  "IdleTimeout": 60,

Hey @agriesser
The timeouts may have migrated from the test base mm, which was deployed through your operator, there was still a cluster size to specify, maybe there were ok small timeouts on the small one