I’m getting 502 Bad Gateway error when trying to create a product with 30+ variants using GraphQL. This is not the case if I create a product with fewer variants.
Looking in other cases it looks like it is a common problem, but I didn’t found any way to solve this.
Hello thanks for sharing, right now I am experiencing the same error, could you help me with an example of the code that you used to solve this problem?
This is a common issue. When you try to create a product including all images and all variants in a single productCreate mutation it looks like the size of the query is too big, so you get the 502 error.
So, I solved this by separating the product creation into multiple steps programmatically, which requieres more code but is more efficient.
I can’t share examples of code but I can give you some steps to follow.