Describe the issue/error/question
I am trying to utilize the sendgrid api in order to create a new subuser, in order to do this i need o create a number of variable along with the IP address.
This is the documentation from sendgrid:
curl -X POST https://api.sendgrid.com/v3/subusers
–header “Authorization: Bearer <<YOUR_API_KEY_HERE>>”
–data “{‘username’: ‘[email protected]’, ‘email’: ‘[email protected]’, ‘password’: ‘johns_password’, ‘ips’: [‘1.1.1.1’, ‘2.2.2.2’]}”
What is the error message (if any)?
{“status”:“rejected”,“reason”:{“message”:“400 - {“errors”:[{“message”:“Encountered problem reading the postbody”}]}”,“name”:“Error”,“stack”:“Error: Request failed with status code 400\n at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n at IncomingMessage.emit (events.js:327:22)\n at endReadableNT (internal/streams/readable.js:1327:12)\n at processTicksAndRejections (internal/process/task_queues.js:80:21)”}}
Please share the workflow
Information on your n8n setup
- n8n version: 0.158.0