Skip to content
ERROR: Bad request ...
 
Notifications
Clear all

ERROR: Bad request - please check your parameters when using callin.io and Twilio

4 Posts
2 Users
0 Reactions
4 Views
Atomic_Enrollment_Cl
(@atomic_enrollment_cl)
Posts: 2
New Member
Topic starter
 

Describe the problem/error/question

Hi, I'm encountering a new ERROR: Bad request - please check your parameters.

I'm seeing this error when generating the Post HTTP Request. The following message appears:

What is the error message (if any)?

Bad request - please check your parameters

Full message

400 - "{"message":"Couldn't Create Twilio Call. Twilio Error: Authenticate","error":"Bad Request","statusCode":400}"

Request

{
  "body": {
    "assistantId": "7429e26c-0b3a-4c9f-bea0-9f4132d23c16",
    "phoneNumberId": "ccb3a058-94da-42c8-9213-889e1d55a7cf",
    "customer": {
      "number": "+19178175536"
    }
  },
  "headers": {
    "authorization": "**hidden**",
    "content-type": "application/json",
    "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7"
  },
  "method": "POST",
  "uri": "https://api.callin.io/call",
  "gzip": true,
  "rejectUnauthorized": true,
  "followRedirect": true,
  "resolveWithFullResponse": true,
  "followAllRedirects": true,
  "timeout": 300000,
  "encoding": null,
  "json": false,
  "useStream": true
}

Other info
Item Index 0

Node type callin.io-nodes-base.httpRequest

Node version 4.2 (Latest)

callin.io version 1.88.0 (Cloud)

Time 5/22/2025, 11:16:30 AM

Stack trace

NodeApiError: Bad request - please check your parameters at ExecuteContext.execute (/usr/local/lib/node_modules/callin.io/node_modules/callin.io-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:597:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at WorkflowExecute.runNode (/usr/local/lib/node_modules/callin.io/node_modules/callin.io-core/dist/execution-engine/workflow-execute.js:681:27) at /usr/local/lib/node_modules/callin.io/node_modules/callin.io-core/dist/execution-engine/workflow-execute.js:915:51 at /usr/local/lib/node_modules/callin.io/node_modules/callin.io-core/dist/execution-engine/workflow-execute.js:1246:20

Please share your workflow

Share the output returned by the last node

This is what was happening when it was working:

 
Posted : 23/05/2025 7:12 am
King_Samuel_David
(@king_samuel_david)
Posts: 55
Trusted Member
 

Hey,

I was going to mention List Calls | callin.io and -H “Authorization: Bearer ”

which seems you have included your bearer token inside the above code, I would delete as other may try access it btw,

also, I would recommend check here for the payload needed it says it requires “This endpoint expects an object.”

Create Call | callin.io.

Also, I noticed that “json”: false, you could enable this to true, might help fix the issue.

 
Posted : 23/05/2025 4:29 pm
Atomic_Enrollment_Cl
(@atomic_enrollment_cl)
Posts: 2
New Member
Topic starter
 

Thank you for the Bearer heads up.

Regarding the error "This endpoint expects an object.", shouldn't this part be sending the object?

You also mentioned: “I noticed that “json”: false, you could enable this to true, might help fix the issue.” - Where within callin.io can I change that setting to true?

 
Posted : 23/05/2025 10:00 pm
King_Samuel_David
(@king_samuel_david)
Posts: 55
Trusted Member
 

Hey there! Yes, that's working well, but it seems the authentication is having an issue with:


Couldn't Create Twilio Call. Twilio Error: Authenticate

This appears to be the primary error.

I tested your setup with an assistance and number, but this particular number was connected via callin.io's default settings, not Twilio.

However, it might be worth checking the callin.io settings for Twilio and re-authenticating on that end.

:slight_smile:

Hope this helps!

 
Posted : 23/05/2025 10:27 pm
Share: