CIF graphql query in author mode both local and cloud fails with 502 gateway error, in publish works | Community
Skip to main content
AndreaB69
Level 3
January 27, 2023

CIF graphql query in author mode both local and cloud fails with 502 gateway error, in publish works

  • January 27, 2023
  • 2 replies
  • 1604 views

Hello,
we are using CIF to call remote Magento/Adobe commerce graphql endpoint.
Normal queries are always fine.
A big query with lot of get parameters fails only in author mode either local or in cloud.

The error  we get on brower to http://localhost:4502/api/graphql?query=query+getProductCatalog.................. (huge number of filters here)
is 502 gateway timeout.
The same request is logged with 200 success on author request and access log.


The same query is working on publish where it's done directly from react to Magento endpoint.
(or if we manually execute the query directly on magento endpoint either with postman or any graphql client)
Response time for the query is not high  (much less than a second)

Any idea of what parameters we could tune to overcome the error in author where request is proxied by AEM.
We tried increasing jetty request buffer size or header buffer size with no luck.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
January 30, 2023

@andreab69 hey Andrea, did you tried to use AEM endpoint to try in postman instead of Magento endpoint? 

Level 2
February 1, 2024

@shashi_mulugu We're seeing the same issue.  Sending a large GET request in Postman to the publish server works, but sending the same request to the author server fails with a 502.

AndreaB69
AndreaB69Author
Level 3
January 31, 2023

Hi,
as an update POST request do work,
so it looks like a GET limitation.
are you aware of a stricter GET request lenght limit when passing through AEM?