Solving GraphQL Mutation Error in Make.com: A Guide
Have you ever tried to send a GraphQL mutation and received a non-specific error message like 'Please contact admin'? This can be frustrating, especially when the same mutation works perfectly in a GraphQL IDE like Altair. But don't worry, I've got a solution for you.
The Problem
When trying to send a POST mutation using the body in Make.com's HTTP module, you might encounter an error 400 message. This can happen even when sending a GET query (a different type) through the same module using the query string works fine.
The Solution
The solution to this problem is surprisingly simple: change the body type. This might seem counterintuitive, especially if you're used to working with other APIs, but it's a necessary step when working with the Shiphero API.
Here's a step-by-step guide on how to do it:
- Open the HTTP module in Make.com.
- Enter your GraphQL mutation in the body field.
- Change the body type to 'x-www-form-urlencoded'.
- Send the request.
Troubleshooting Tips
If you're still encountering issues after changing the body type, here are a few things you can try:
- Double-check your mutation syntax. Even a small typo can cause an error.
- Try sending the mutation through a GraphQL IDE to see if it works there. If it does, the issue might be with the HTTP module.
- Contact Make.com support for further assistance.
Conclusion
While encountering errors when trying to send GraphQL mutations can be frustrating, the solution is often simple. In this case, changing the body type can resolve the issue and allow you to send your mutations successfully. Remember, when in doubt, don't hesitate to reach out to Make.com support for help.
You do have further questions?
Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.