Hey everyone, I’m stuck on something and could use a hand.
I’m making an API request that works perfectly in n8n with the same URL, headers, and body. But in MindStudio, I keep getting this error:
HTTP Request 21 ms 1 Action started on CloudRunner 2 Making HTTP Request 3 Resolving variables 4 Error: TypeError: (rawString || “”).replace is not a function
I’ve been trying to debug this for hours with no luck. Has anyone seen this before or know what might cause it?
And here’s the API documentation I’m using for the HTTP request (HeyReach’s API):
Note: I’ve removed my API key from the request examples for security purposes.
The weird part is: I’ve tried everything — adding/removing Content-Type in headers, switching body types (application/json, custom with json, etc.). Once, when I set body type to custom and typed in json, the request actually worked. Ten minutes later, same exact setup gave me the error again.
I worked around it by piping the request through n8n and feeding the result back into MindStudio, but I’d really love to know what’s breaking here since the same request works fine outside of MindStudio. Would appreciate if you could take a look and help me understand the root cause!
Unfortunately this was a bug in the “Autofill” functionality of the MindStudio HTTP Request block – it was adding some extra parameters that weren’t visible in the UI that were breaking the request. The underlying issue has been fixed so it should be working correctly now. Sorry about that!