“invalid character 'u' looking for beginning of value”Parsing Error from an Service developed in golang
问题 I am trying to have the response from API which is developed in Golang. Using PostMan I get the proper response, but when I use requests library, I get the following message: { u'status':400, u'title':u'Unable to parse data', u'code':u'400001', u'id':u'edf83LlwYx', u'detail':u"invalid character 'u' looking for beginning of value" } My Python script is: import requests import json import data url = data.user_login headers = { 'Content-Type': 'application/json', 'content-encoding': 'deflate' }