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

Notifications

Announcements

Community site session details

Community site session details

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

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

(0) ShareShare
ReportReport
Posted on by

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 802 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 273

Last 30 days Overall leaderboard