cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Serf
Helper II
Helper II

Custom Connector Response: Error that it expects JSON - but actual answer is String

Hi,

 

I have created a Custom Connector and the Endpoint returns a String (which is base64 encoded - but I guess that shouldn't matter).

 

I set the response of the 200 message to be string.

 

- When testing the Connector in the "Test" masks it works fine

- But when using the Connector in a Power Automate Flow it always fails with the message that the response is not JSON

 

Any ideas?

Swagger definition:

 

responses:
        '200':
          description: Base64 License
          schema: {type: string, format: '', title: ''}

 

Image:

Serf_1-1619626103986.png

 

Testing works - but the Response Header returns conent-type application/json? Maybe this could be the issue?

Serf_2-1619626184156.png

 

When executing:

Serf_3-1619626261835.png

 

 

I am not sure what the issue is here - if it is in Swagger - as it somehow still expects JSON - but the response I get is just a string.

 

Thanks for your help!

 

1 ACCEPTED SOLUTION

Accepted Solutions

The issue was actually the service and not in the Custom Connector.

 

The service reponded with application-type: application/json but did not send a JSON, which caused the issue in Flow.

View solution in original post

2 REPLIES 2
Sid_Jafri
Resolver III
Resolver III

@Serf 

 

Did you find the resolution of above issue?

The issue was actually the service and not in the Custom Connector.

 

The service reponded with application-type: application/json but did not send a JSON, which caused the issue in Flow.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (47,980)