Keep getting 400 Bad Request` - "No entity content received."

Created on 9 January 2025, 11 days ago

Problem/Motivation

Hi,

I'm very happy to have found this module, I'm in need of exactly this. So thanks very much for sharing it.

I think I'm not configuring my action correctly, and I would greatly appreciate any help. I keep getting:

 [error]  Client error: `POST https://***com/entity/tec_transaction?_format=hal_json` resulted in a `400 Bad Request` response:
@"message":"No entity content received."

Below is a screenshot of my config. I'm posting to an endpoint on the same site. Using Postman, I can create entities without issue. I'm pasting the same body from postman and serialize it as "Raw". I've also tried to format the body as YAML and choosing "JSON" as serialization method, and every other possible combination.

Lastly, it's not exactly clear to me what the final two configuration options do, but I've tried all "Send to output" options and the "Name of token" option, I can only assume it is a token that will contain the response from the endpoint?

Thank for any guidance.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇹🇭Thailand AlfTheCat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @AlfTheCat
  • 🇻🇳Vietnam zipme_hkt

    Look like you use old version of eca_helper.
    Please use latest version 2.0.2

    When POST content already in json format you keep use RAW format is OK.

    Please try again and send the feedback.

  • 🇹🇭Thailand AlfTheCat

    Thanks very much, I didn't pay enough attention to the terminal output. Turned out that my codebase was still running on ECA 1.x. After upgrading, I got it to work beautifully.

    One glitch: even though I use JSON formatted data, the RAW option didn't work. But when I set serialization to JSON, it does. Using Raw, I get:

    error] Passing in the "body" request option as an array to send a request is not supported. Please use the "form_params" request option to send a application/x-www-form-urlencoded request, or the "multipart" request option to send a multipart/form-data request.

    Very happy it's working now, this is very powerful.

Production build 0.71.5 2024