web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom Connector Respo...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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!

 

I have the same question (0)
  • Sid_Jafri Profile Picture
    478 on at

    @Anonymous 

     

    Did you find the resolution of above issue?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard