cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vecerpa
Memorable Member
Memorable Member

Custom Connector Issue in response

Hello I set up custom connector but I am not able to reach data behind it.

I still receive this message:

Status:

The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set. (500)

Headers:

{
  "pragma": "no-cache",
  "strict-transport-security": "max-age=31536000; includeSubDomains",
  "x-content-type-options": "nosniff",
  "date": "Wed, 17 Apr 2019 20:15:13 GMT",
  "x-frame-options": "DENY",
  "content-type": "application/json; charset=utf-8",
  "cache-control": "no-cache,no-store",
  "content-length": "203",
  "expires": "-1"
}

Body:

{
  "status": 500,
  "message": "The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.",
  "source": "gatewayconnector-we.azconn-we.p.azurewebsites.net"
}

Does anybody have idea where can be trouble?

Thank you

P.

3 REPLIES 3
v-zhos-msft
Solution Sage
Solution Sage

Hi @vecerpa ,

As the error message said:

The character set provided in ContentType is invalid.

 I suggest you change the 'charset=utf-8' to 'charset=UTF-8' for a try.

Or don't set the 'content-type' for a try.

Sorry for that, I can't test the issue on my side.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Bothrel
New Member

Hi @vecerpa , did you found the solution?

I have the same here. When i tested the conector everything is good. But when i tried to use it in a flow the error apperar:  'The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set.'.

Does anybody have idea what went wrong? Its a bug?

Gerenciar seus conectores personalizados  Power Automate - Google Chrome.jpgHistórico de Execuções  Power Automate - Google Chrome.jpg

Pradeep_Gawade
Frequent Visitor

Hii,
I am getting same error while testing on Power Automate.
but it is normally running on Postman.
anyone found solution. Please help me.

I have already tried almost all content-type 

and also tried without content type

my postman response is csv format:

 

"申請日","申請者","出発駅","到着駅","合計金額"
"2020/7/23","山田太郎","東京","立川","\336"

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,418)