stoiveyp / Slack.NetStandard

.NET Core package that helps with Slack interactions
MIT License
41 stars 16 forks source link

Warning in response: `superfluous_charset` #77

Closed tomer-amir closed 2 years ago

tomer-amir commented 2 years ago

While sending most API calls were getting the following errors in the response:

{
    "ok": true,
    // ...
    "warning": "superfluous_charset",
    "response_metadata": {
        "warnings": [
            "superfluous_charset"
        ]
    }
}

Found the following similar issue online in the python SDK: https://github.com/slackapi/python-slack-sdk/issues/692 apparently, this is caused by sending utf-8 in the content type header:

Content-Type: application/json; charset=utf-8
stoiveyp commented 2 years ago

Thanks for raising this @tomer-amir. The issue has been resolved in v5.1.3