Getting Error in post request

In the following piece of code getting error

const config = {

method: "POST",

url: `https://hkidevelopment.hki.net.in/Api/Web_api/get_data`,

headers: {

  "Content-Type": "application/x-www-form-urlencoded",

},

param: {

  hook_values: "Luke"

}

}

if (params.auth) config.auth = params.auth

return await require("@pipedreamhq/platform").axios(this, config)

ERROR-------------
at null.createError (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/core/createError.js:16:15)
at null.settle (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/tmp/ee/node_modules/@pipedreamhq/platform/node_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:412:35)
at null.endReadableNT (internal/streams/readable.js:1334:12)
at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

Can you please help in this

Regards,
Sumit Rathi

@sumitrathi Could you click on the Share button at the top-right of your workflow, and share it with dylan@pipedream.com?

Shared with you
Also I am able to get the success return using postman or reqbin… screenshot attached

Regards,
Sumit

I checked the workflow, and it looks like the most recent request was successful - is that correct?

Yes… I was successful to run the workflow…
Thanks for your quick watch and reply…

Regards,
Sumit

Great glad to hear. Let us know if you have any other questions.

1 Like