cancel
Showing results for 
Search instead for 
Did you mean: 

IRPA 2.0 - Troubleshoot with API Call and Response Code 400 (Bad Request)

0 Kudos
845

Hi all,

I am working on the IRPA, and I would to call SharePoint Online REST API.

The first step is get the access token, and now I can use Postman to make a call to got the access token.

But when do the same call with the same url & post data in IRPA 2.0, it always return Response Code 400 (Bad Request).

Surely, it may have many reason to got the Response Code 400, so that, I would like to get more error information from the response (header/ body) to get the hint to fix the issue.

However, when execute irpa_core.request.call(), and return Response Code 400, it directly throw error, so that, I cannot view the original response.

The original response should be something like this (this is an example with invalid body and called in Postman):

May I know how to get the original response even it return Response Code 400?

Or any other way to found the root cause?

Many thanks!

Lam

Accepted Solutions (0)

Answers (2)

Answers (2)

veerakitt
Newcomer
0 Kudos

Hi lam01007

You can try-catch and log error.parameters.response.body

0 Kudos

HI, any expert could helping on it?

chwostian
Participant
0 Kudos

Have you had any luck with this?