Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用Python编写了一套sdk, 返回500 系统错误 #6

Open
Shane-hcker opened this issue Jun 24, 2023 · 0 comments
Open

用Python编写了一套sdk, 返回500 系统错误 #6

Shane-hcker opened this issue Jun 24, 2023 · 0 comments

Comments

@Shane-hcker
Copy link

Shane-hcker commented Jun 24, 2023

写了个python的sdk,仓库在这 https://github.com/Shane-hcker/yucongming-python-sdk
报错描述如下:

data = self.get_data(json_)
parsed_data = uparse.urlencode(data, encoding='utf-8').encode('utf-8')

headers = {'Content-Type': 'application/json'}

context = ssl._create_unverified_context()
# fixme --> 500 Systematic Error
request = urequests.Request(url, parsed_data, headers, method='POST')
res = urequests.urlopen(request, context=context)

请求后返回结果:{code:50000, data:None, message:系统错误}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant