Help Needed with HTTP Module Redirect Issue

Hi everyone,

I’m having trouble with an HTTP module in Make when sending a POST request to https://stealthgpt.ai/api/stealthify. My setup includes the necessary headers and JSON body, but I keep getting a 308 status code with “Redirecting…” in the response data.

Screenshot 2024-08-07 at 20.52.07

Has anyone encountered this issue and found a solution? Any tips or guidance would be greatly appreciated!

Thanks in advance!

Best,
Mourad

Hi @Mourad_Himmi ,

It seems that instead of redirecting and returning the resource at the end of the chain, the endpoint just returns ‘Redirecting’ as a response.

Did you try to set both these settings in the advances settings to ‘yes’?

Cheers,
Henk

Thanks for your response. I switched to yes for follow all redirects and this is what i get

Screenshot 2024-08-07 at 21.30.08

The 405 error points to a Not Allowed error message.

Could you try another HTTP method? And please share some info on the resource that you are trying to fetch.

Cheers,
Henk

I’m trying to post in order to get a response from stealthgpt API

Here is the documentation : API Requests and Parameters | StealthGPT

and below screenshots of HTTP request. I’m using an API token


So as I was very interested in StealthGPT, I bought some API Tokens for myself and came to a solution.

The initial request has to be POST, otherwise StealthGPT throws an error. But, StealthGPT seems to be redirecting to another resource that does not accept POST and thus throws an error then. With the Integromat DevTool - Chrome Web Store, I cannot find the redirect.

I tried the same request with Insomnia, no issue whatsoever:

Based on the timeline, something stood out:

* Preparing request to https://stealthgpt.ai/api/stealthify
* Current time is 2024-08-08T14:14:29.772Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable timeout of 30000ms
* Enable SSL validation
* Enable cookie sending with jar of 14 cookies
* Found bundle for host stealthgpt.ai: 0x11c48d540 [can multiplex]
* Re-using existing connection! (#12) with host stealthgpt.ai
* Connected to stealthgpt.ai (76.76.21.21) port 443 (#12)
* Using Stream ID: 5 (easy handle 0x149958a00)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):

> POST /api/stealthify HTTP/2
> Host: stealthgpt.ai
> content-type: application/json
> user-agent: insomnia/8.4.5
> api-token: XXX
> accept: */*
> content-length: 221

* TLSv1.2 (OUT), TLS header, Supplemental data (23):

| {
|         "prompt": "This is a test, can you try to come up with a title for an article about Zapier vs Make?",
|         "rephrase": false,
|         "tone": "Academic",
|         "mode": "High",
|         "business": true
|     }


< HTTP/2 308 
< cache-control: public, max-age=0, must-revalidate
< content-type: text/plain
< date: Thu, 08 Aug 2024 14:14:29 GMT
< location: https://www.stealthgpt.ai/api/stealthify
< refresh: 0;url=https://www.stealthgpt.ai/api/stealthify
< server: Vercel
< strict-transport-security: max-age=63072000
< x-vercel-id: cdg1::x78tb-1723126469829-936b82ae295d

The redirect is “https://www.stealthgpt.ai/api/stealthify”!

A subtle but important distinction and not documented well on StealthGPT’s side. If you change your URL in the HTTP module, it should work:

Cheers,
Henk

2 Likes

Thanks a lot Henk. Changing the URL was the solution and it worked

1 Like