question

JordanShepherd-7718 avatar image
0 Votes"
JordanShepherd-7718 asked MayankBargali-MSFT commented

Customer Connector Returning Response: BadRequest. Http request failed: the content was not a valid JSON.

Not sure if this is to do with the number of headers being provided or something else but when using the below, it returns a 200 ok response as expected:


101650-image.png


However when adding even 1 more header, it returns response: BadRequest. Http request failed: the content was not a valid JSON.

101686-image.png



I've tried the same request in Postman with the same headers and it appears to work fine so I assume it's something to do with the custom connector - the definition of this action in the custom connector seems fine and wouldn't have thought there would be an issue there as surely if there was a syntax error or something then it would allow me to perform the action at all.

Any ideas?

azure-logic-apps
image.png (34.3 KiB)
image.png (59.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JordanShepherd-7718 As per the error message the content that you have provided was not a valid json. This needs to be looked from your connector definition end. Can you compare your input (show raw inputs) and compare the same with your connector path, parameters that you have defined in your custom connector.
You can find the custom http connector open api definition here if you want to compare it with your schema.

0 Votes 0 ·

Thanks for that link, that was very helpful - custom connector definition seems to me to be ok to me (attached) - is the next step to raise a support ticket?

<<Mayank : Removed swagger definition from public comment>>

0 Votes 0 ·

0 Answers