CURL Request in Make, Data returning as binary

:bullseye: What is your goal?

I am trying to get the output data as an array.

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

I have a HTTP Make a request module set up, but the output returns Data in binary.

:clipboard: Error messages or input/output bundles

[
{
“statusCode”: 200,
“headers”: [
{
“name”: “strict-transport-security”,
“value”: “max-age=16070400; includeSubDomains”
},
{
“name”: “x-frame-options”,
“value”: “SAMEORIGIN”
},
{
“name”: “x-content-type-options”,
“value”: “nosniff”
},
{
“name”: “x-xss-protection”,
“value”: “1; mode=block”
},
{
“name”: “content-security-policy”,
“value”: “default-src ‘self’; frame-ancestors ‘self’; script-src ‘self’; connect-src ‘self’; img-src ‘self’; style-src ‘self’;base-uri ‘self’;form-action ‘self’”
},
{
“name”: “cache-control”,
“value”: “no-cache, no-store, must-revalidate”
},
{
“name”: “pragma”,
“value”: “no-cache”
},
{
“name”: “expires”,
“value”: “Thu, 01 Jan 1970 00:00:00 GMT”
},
{
“name”: “authorization”,
“value”: “Bearer TOKEN”
},
{
“name”: “transfer-encoding”,
“value”: “chunked”
},
{
“name”: “date”,
“value”: “Tue, 25 Nov 2025 15:25:10 GMT”
},
{
“name”: “keep-alive”,
“value”: “timeout=60”
},
{
“name”: “connection”,
“value”: “keep-alive”
}
],
“cookieHeaders”: ,
“data”: “IMTBuffer(2969, binary, d2083c095a0508bbfa42ff5f324f4fe5fa4ffcb5): 5b7b22756e69745f676b6579223a223230313931363937393637222c227566765f676b6579223a223230313931363937393730222c227676645f676b6579223a223139393134343038333038222c22636f6e7461696e6572223a22544949553630343733”,
“fileSize”: 2969
}
]

1 Like

Hey Simon,

and what is the data supposed to be? What are you trying to get and what are you trying to do with it?

I am looking to get “fte_date” which is a formatted as ex: 2025-Dec-02
This data is the “FreeTime End Date” for shipping containers. I am trying to update an Airtable record with the data.

Hi Simon. Welcome to the Community!

Can you share a screenshot showing the parameters you’re supplying in the HTTP Make a request module?

Redact any sensitive information like API keys or email addresses first though.

You can use the code app to decode binary to a text string, but what is the setting of the HTTP module? Why is it not returning JSON directly?

Here is the full body of request content:

{
“user”: {
“username”: “REDACTED”,
“user_gkey”: “REDACTED”,
“password”: “”,
“first_name”: “Joyce”,
“last_name”: “REDACTED”,
“company_code”: “REDACTED”,
“company_scac”: “BOYF”,
“company_name”: “REDACTED”,
“company_life_cycle_state”: “ACT”,
“credit_status”: “CHECK”,
“trucker_vender_id”: “N”,
“address_1”: “REDACTED”,
“address_2”: null,
“city”: “Avenel”,
“state”: “NJ”,
“zip”: “07001”,
“phone_number”: “REDACTED”,
“fax_number”: null,
“email_address”: “REDACTED”,
“active”: “Y”,
“expired_date”: null,
“guarantee_limit”: “0”,
“role”: “HAULIER”,
“menuRoleArray”: [
“CSP_EMAIL_REPORTS”,
“CSP_TRUCKER_ENTRY_ROLE”,
“CSP_TRUCKER_INQUIRY_ROLE”
],
“passwordResetCode”: null,
“canSeeAllData”: “0”,
“maherError”: null,
“navisErrors”: null,
“creditCard”: null,
“device”: “C”,
“systemAdmin”: null,
“callingCalculator”: “N”,
“sealink”: null,
“twic_number”: null,
“sealink_suspended”: null,
“sealink_expiration”: null,
“sealink_status”: null,
“sealink_life_cycle_state”: null
},
“requestData”: [
{ “container”: “TIIU6047334” }
]
}

I just used a Set Variable module to convert the binary to a string, but I’m not sure why the HTTP module itself is not outputting the data as a string or array.

Yeah that doesn’t look like an API endpoint you are hitting, it looks like you are simulating a user login directly on the platform.

Unless you can find some documentation on this, it may not be possible to figure out how to get it to give you a JSON.

Best bet is to try and transform it.

2 Likes