Unexpected error

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
radleymartinez
Posts: 1
Joined: Tue Nov 26, 2024 9:35 am

Unexpected error

Post by radleymartinez »

We are able to create a correct payload (JSON file) which is working correctly in Postman. but when we try to send from an RPGLE we keep getting this error of "{"status":400"message"."Malformed request","additional error".""} SetError()#13:HTTP 1.1 BadRequest"

It must be in the something in the program that we are missing. Has anyone seen this before or point us where we need to look next.
stefan@tageson.se
Posts: 23
Joined: Wed Jul 28, 2021 7:55 am
Location: Viken, Sweden
Contact:

Re: Unexpected error

Post by stefan@tageson.se »

One reason could be that you are not using ccsid 1208 and there are many more .....
If you suspect it's a programming error - posting the relevant code would make it easier for us to help you.
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: Unexpected error

Post by Scott Klement »

I'd start by examining how you are making the request and looking at the debug file... likely there's a problem there.
Post Reply