Make request using ipv6 address from http module

:bullseye: What is your goal?

Make a requestto ipv6 address enabled ec2 instance using http module
https://[ipv6_address]/api1 using post method

:thinking: What is the problem & what have you tried?

using the curl command in cmd from local machine it is working giving the output but not in the scenario(Service is not reachable) Connection error but i using curl localhost in server(ec2 instance) and to make the instance is not dual stack it only have public ipv6 i have disabled public ipv4,
curl -k -X POST “https://[ipv6_address]/api1” -H “Content-Type: application/json” -d “{"url":"LINK”}"
in cmd(laptop) it is working

:clipboard: Error messages or input/output bundles

ConnectionError
Service is not reachable

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Hey there,

can you install the Make DevTool browser extension and use it to check the raw call that the module is making and verify that its the same as the curl command?

1 Like

Hello @Sangeetha_Subhash,

Welcome to the Community!

I think the problem is within the new HTTP module, but this is only an assumption as I cannot make sandbox requests to your endpoint.

curl -k -X POST

Your cURL contains -k flag which disables certificate verification. I cannot find this option in new HTTP module.

Please try with the legacy module (copy code and paste it into your test scenario).

Then toggle on Advanced settings and make sure that Reject connections that are using unverified (self-signed) certificates is set to no. Also configure the URL, request type, and body.

Please let me know if that helps!

Have a nice day,
Michal

Legacy HTTP:

{
    "subflows": [
        {
            "flow": [
                {
                    "id": 2,
                    "module": "http:ActionSendData",
                    "version": 3,
                    "parameters": {
                        "handleErrors": true,
                        "useNewZLibDeCompress": true
                    },
                    "mapper": {
                        "url": "https://make.com",
                        "serializeUrl": false,
                        "method": "post",
                        "headers": [],
                        "qs": [],
                        "bodyType": "raw",
                        "parseResponse": true,
                        "authUser": "",
                        "authPass": "",
                        "timeout": "",
                        "shareCookies": false,
                        "ca": "",
                        "rejectUnauthorized": false,
                        "followRedirect": true,
                        "useQuerystring": false,
                        "gzip": true,
                        "useMtls": false,
                        "contentType": "application/json",
                        "data": "{\n}",
                        "followAllRedirects": false
                    },
                    "metadata": {
                        "designer": {
                            "x": 365,
                            "y": 19
                        },
                        "restore": {
                            "expect": {
                                "method": {
                                    "mode": "chose",
                                    "label": "POST"
                                },
                                "headers": {
                                    "mode": "chose"
                                },
                                "qs": {
                                    "mode": "chose"
                                },
                                "bodyType": {
                                    "label": "Raw"
                                },
                                "contentType": {
                                    "label": "JSON (application/json)"
                                }
                            }
                        },
                        "parameters": [
                            {
                                "name": "handleErrors",
                                "type": "boolean",
                                "label": "Evaluate all states as errors (except for 2xx and 3xx )",
                                "required": true
                            },
                            {
                                "name": "useNewZLibDeCompress",
                                "type": "hidden"
                            }
                        ],
                        "expect": [
                            {
                                "name": "url",
                                "type": "url",
                                "label": "URL",
                                "required": true
                            },
                            {
                                "name": "serializeUrl",
                                "type": "boolean",
                                "label": "Serialize URL",
                                "required": true
                            },
                            {
                                "name": "method",
                                "type": "select",
                                "label": "Method",
                                "required": true,
                                "validate": {
                                    "enum": [
                                        "get",
                                        "head",
                                        "post",
                                        "put",
                                        "patch",
                                        "delete",
                                        "options"
                                    ]
                                }
                            },
                            {
                                "name": "headers",
                                "type": "array",
                                "label": "Headers",
                                "spec": [
                                    {
                                        "name": "name",
                                        "label": "Name",
                                        "type": "text",
                                        "required": true
                                    },
                                    {
                                        "name": "value",
                                        "label": "Value",
                                        "type": "text"
                                    }
                                ]
                            },
                            {
                                "name": "qs",
                                "type": "array",
                                "label": "Query String",
                                "spec": [
                                    {
                                        "name": "name",
                                        "label": "Name",
                                        "type": "text",
                                        "required": true
                                    },
                                    {
                                        "name": "value",
                                        "label": "Value",
                                        "type": "text"
                                    }
                                ]
                            },
                            {
                                "name": "bodyType",
                                "type": "select",
                                "label": "Body type",
                                "validate": {
                                    "enum": [
                                        "raw",
                                        "x_www_form_urlencoded",
                                        "multipart_form_data"
                                    ]
                                }
                            },
                            {
                                "name": "parseResponse",
                                "type": "boolean",
                                "label": "Parse response",
                                "required": true
                            },
                            {
                                "name": "authUser",
                                "type": "text",
                                "label": "User name"
                            },
                            {
                                "name": "authPass",
                                "type": "password",
                                "label": "Password"
                            },
                            {
                                "name": "timeout",
                                "type": "uinteger",
                                "label": "Timeout",
                                "validate": {
                                    "max": 300,
                                    "min": 1
                                }
                            },
                            {
                                "name": "shareCookies",
                                "type": "boolean",
                                "label": "Share cookies with other HTTP modules",
                                "required": true
                            },
                            {
                                "name": "ca",
                                "type": "cert",
                                "label": "Self-signed certificate"
                            },
                            {
                                "name": "rejectUnauthorized",
                                "type": "boolean",
                                "label": "Reject connections that are using unverified (self-signed) certificates",
                                "required": true
                            },
                            {
                                "name": "followRedirect",
                                "type": "boolean",
                                "label": "Follow redirect",
                                "required": true
                            },
                            {
                                "name": "useQuerystring",
                                "type": "boolean",
                                "label": "Disable serialization of multiple same query string keys as arrays",
                                "required": true
                            },
                            {
                                "name": "gzip",
                                "type": "boolean",
                                "label": "Request compressed content",
                                "required": true
                            },
                            {
                                "name": "useMtls",
                                "type": "boolean",
                                "label": "Use Mutual TLS",
                                "required": true
                            },
                            {
                                "name": "contentType",
                                "type": "select",
                                "label": "Content type",
                                "validate": {
                                    "enum": [
                                        "text/plain",
                                        "application/json",
                                        "application/xml",
                                        "text/xml",
                                        "text/html",
                                        "custom"
                                    ]
                                }
                            },
                            {
                                "name": "data",
                                "type": "buffer",
                                "label": "Request content"
                            },
                            {
                                "name": "followAllRedirects",
                                "type": "boolean",
                                "label": "Follow all redirect",
                                "required": true
                            }
                        ],
                        "advanced": true
                    }
                }
            ]
        }
    ],
    "metadata": {
        "version": 1
    }
}
1 Like

Hello @mszymkowiak
I have tried ur approach (self-signed) certificates is set to no it’s resulting
unable to get local issuer certificate error but in http module(current verions) where as in
in HTTP(legacy) while using the ipv6 address as request(url) to the server it is showing error like this ENETUNREACH: connect ENETUNREACH error so, it is indicating that the ipv4 source(http module) can’t connect to server(only ipv6 enabled instance) no dual stack enabled. so, i have tried using cloudflare,DNS64 and other stuff but not result. so, again i switched to ipv4 instance.

Thank you for your time Michal

Thank you,
Michal

2 Likes

Hello @Stoyan_Vatov
Yes it is requesting the same now, i have moved my architecture form ipv6 to ipv4 to it is working

Thank you for your time Stoyan_Vatov

1 Like