HTTP Node not responding with payload

The HTTP node does not respond with the body from the API called anymore. It’s just giving the status code and some “Error buffer blob”.

Same payload and call in Postman produces something readable. Is this expected?

this isn’t very helpful:

400 - {"type":"Buffer","data":[123,34,101,114,114,111,114,115,34,58,91,123,34,109,101,115,115,97,103,101,34,58,34,84,104,101,32,115,117,98,106,101,99,116,32,105,115,32,114,101,113,117,105,114,101,100,46,32,89,111,117,32,99,97,110,32,103,101,116,32,97,114,111,117,110,100,32,116,104,105,115,32,114,101,113,117,105,114,101,109,101,110,116,32,105,102,32,121,111,117,32,117,115,101,32,97,32,116,101,109,112,108,97,116,101,32,119,105,116,104,32,97,32,115,117,98,106,101,99,116,32,100,101,102,105,110,101,100,32,111,114,32,105,102,32,101,118,101,114,121,32,112,101,114,115,111,110,97,108,105,122,97,116,105,111,110,32,104,97,115,32,97,32,115,117,98,106,101,99,116,32,100,101,102,105,110,101,100,46,34,44,34,102,105,101,108,100,34,58,34,115,117,98,106,101,99,116,34,44,34,104,101,108,112,34,58,34,104,116,116,112,58,47,47,115,101,110,100,103,114,105,100,46,99,111,109,47,100,111,99,115,47,65,80,73,95,82,101,102,101,114,101,110,99,101,47,87,101,98,95,65,80,73,95,118,51,47,77,97,105,108,47,101,114,114,111,114,115,46,104,116,109,108,35,109,101,115,115,97,103,101,46,115,117,98,106,101,99,116,34,125,44,123,34,109,101,115,115,97,103,101,34,58,34,85,110,108,101,115,115,32,97,32,118,97,108,105,100,32,116,101,109,112,108,97,116,101,95,105,100,32,105,115,32,112,114,111,118,105,100,101,100,44,32,116,104,101,32,99,111,110,116,101,110,116,32,112,97,114,97,109,101,116,101,114,32,105,115,32,114,101,113,117,105,114,101,100,46,32,84,104,101,114,101,32,109,117,115,116,32,98,101,32,97,116,32,108,101,97,115,116,32,111,110,101,32,100,101,102,105,110,101,100,32,99,111,110,116,101,110,116,32,98,108,111,99,107,46,32,87,101,32,116,121,112,105,99,97,108,108,121,32,115,117,103,103,101,115,116,32,98,111,116,104,32,116,101,120,116,47,112,108,97,105,110,32,97,110,100,32,116,101,120,116,47,104,116,109,108,32,98,108,111,99,107,115,32,97,114,101,32,105,110,99,108,117,100,101,100,44,32,98,117,116,32,111,110,108,121,32,111,110,101,32,98,108,111,99,107,32,105,115,32,114,101,113,117,105,114,101,100,46,34,44,34,102,105,101,108,100,34,58,34,99,111,110,116,101,110,116,34,44,34,104,101,108,112,34,58,34,104,116,116,112,58,47,47,115,101,110,100,103,114,105,100,46,99,111,109,47,100,111,99,115,47,65,80,73,95,82,101,102,101,114,101,110,99,101,47,87,101,98,95,65,80,73,95,118,51,47,77,97,105,108,47,101,114,114,111,114,115,46,104,116,109,108,35,109,101,115,115,97,103,101,46,99,111,110,116,101,110,116,34,125,93,125]}

Hi @ericsonmartin, n8n doesn’t always parse an API response correctly. It usually helps to play around with the response options for a bit to figure out what’s going on:

image

That said, your response appears to be a decimal representation of the following error coming from the server you are sending a request to:

{
    "errors": [{
        "message": "The subject is required. You can get around this requirement if you use a template with a subject defined or if every personalization has a subject defined.",
        "field": "subject",
        "help": "http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.subject"
    }, {
        "message": "Unless a valid template_id is provided, the content parameter is required. There must be at least one defined content block. We typically suggest both text/plain and text/html blocks are included, but only one block is required.",
        "field": "content",
        "help": "http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.content"
    }]
}

So, it seems you are simply missing some required values in your HTTP Request here.

Many thanks for the quick response. Will surely test that out

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.