Thanks SLeon
Unfortunately it looks like there's still some miscommunication occurring.
The request size (not response size) is 178 KB. I am not receiving an error saying "Result exceeds maximum content length" I am getting a "504 Gateway Time-out". At the end of my last message I did not posit that I am receiving a failure due to response size. I suggested I am receiving a timeout due to my request size as that is the only differentiating factor between this request and successful requests. Let me try to restate the entirety of the issue because it looks like there are several points where we're not communicating well.
I have a query that when run against the database directly using MySQL Workbench returns a result 139 Bytes in size and completes in .047 seconds. The text of that query itself, e.g.:
SELECT * FROM .... is 178 KB. I do not have any questions or concerns about different sizes in responses from hitting the database directly or about the different format of the responses from hitting the database directly versus from the API.
If I send that same query to the same database during the same time frame to the OD public API PUT ShortQuery endpoint, the endpoint does not return a result from the database. Instead it returns a "504 Gateway Time-out". My initial and still current point here is that since we know the database query only returns a result 139 bytes in length that this timeout is not going to be caused by the size of the response.
The below was also in my last post, but I'm putting it here again to round out my current thoughts on what's happening now that some things have been clarified. I've also tried to add some additional clarifying text.
The only differentiating factor here seems to be that our query
request size is relatively large at 178 Kilobytes. If I had to guess, with the information that I have before me, I would say there is something undocumented (or maybe even unintentional) in the OD public API servers (or software) throttling traffic from consumers sending API requests and since our request size is so large it's becoming noticeable in this case. That throttle is causing the 178 KB to be uploaded (meaning us sending the request to the API via Postman, this is not referring to the response) very slowly and it is timing out.
To answer your two questions at the bottom of your last message:
Similar to my other questions:
Can you please clarify if you query produces a 504 for all of your customers, or is it just the one?
Do you have other queries that are also return results of this size (>=178kB)? Do they return 504 or 200?
This is a test instance of Open Dental and we do not have this code released to customers yet so it has only been run against this server.
Our query isn't returning a 178 KB result in this case which is hopefully a bit more clear now after this post, so I'll consider this question as not needing an answer anymore.