Show Chinese compatriots a way forward. In the container /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/oauth2-1.4.7/lib/oauth2/response.rb, the following code exists:
# Content type assignments for various potential HTTP content types.
@@content_types = {
'application/json' => :json,
………………
'text/plain' => :text,
}
Change it to the following:
'text/plain' => :json,
Of course, this should only be useful for WeChat, as only WeChat returns text.