warrenday / graphql-network-inspector

A better network inspector for viewing and debugging GraphQL requests.
MIT License
498 stars 50 forks source link

Unable to load draft request #139

Closed jaspreet759 closed 4 months ago

jaspreet759 commented 4 months ago

[ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "object", "received": "array", "path": [ "response", "body" ], "message": "Expected object, received array" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "object", "received": "string", "path": [ "response", "body", 0 ], "message": "Expected object, received string" }, { "code": "invalid_type", "expected": "object", "received": "array", "path": [ "response", "body", 1 ], "message": "Expected object, received array" } ], "name": "ZodError" } ], "path": [ "response", "body" ], "message": "Invalid input" } ]

warrenday commented 4 months ago

Thanks for raising and posting the error. Looking into it!

warrenday commented 4 months ago

I've updated the schema based on your error to allow more flexibility on the response body. Please try again and hopefully the issue will be gone. If the issue still persists, could you post a version of your response body here (be sure to remove any sensitive data) and i'll be able to test further.