400 Error in GoCardless HTTP

Hey everyone.

I have setup an automations working with GoCardless but am receiving an error.

The error is 400: Your client has issued a malformed or illegal request.

Header 1 is Authorization: Bearer TOP_SECRET_ACCESS_TOKEN

Endpoint: https://api.gocardless.com/payments/PM00WP4ZCQMBPT

Many thanks,
Jesse

Welcome to the Make community!

I couldn’t see the request body from your screenshots.

1.

Please share screenshots of the module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2.

Please export the scenario blueprint file to allow others to replicate the issue. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826

Uploading it here will look like this:

blueprint.json (12.3 KB)

3.

Please provide the input/output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the contents as a bundle.json file, and upload it here into this discussion thread:

Screenshot_2023-10-06_141025

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hi @samliew,

Thank you for your response.

Please see the screenshots of the module fields below:

Here is the exported blueprint file:
Scenario Blueprint.json (51.6 KB)

Here is the output bundle:
Output Bundle.json (910 Bytes)

Many thanks,
Jesse

That looks like the output bundle of the failing module. Do you have any output bundles from the previous modules?

This looks incorrect, you are sending these two headers,

Screenshot_2023-10-10_081024

with no content, thus rendering the request invalid, as per error message.

Screenshot_2023-10-10_081030

1 Like

That makes sense!

I have removed the Content-Type and Content-Length headers as all I am trying to do is a GET request.

I am now getting an Invalid ‘Authorization’ header error.
New Output Bundle.json (2.0 KB)

I think my issue is regarding the Bearer… I’m struggling to find how I can generate the bearer.
I was just using the Access Token Name.

No problem, glad I could help!

This looks like a completely different issue now, I’m not quite sure how to help with that.

In future, please create a new thread for each question. This makes it easier for others with the same problem to search for the answer, and for your new question to get answered faster. Thank you for your cooperation!

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post:
Screenshot_2023-10-04_161049

3 Likes