bugfix
This commit is contained in:
parent
0355fb5cc3
commit
07f0074e71
@ -33,10 +33,12 @@ class OAuthClient:
|
|||||||
_data = self.datalize(mydata, params)
|
_data = self.datalize(mydata, params)
|
||||||
response_type = d.get('response_type', RESPONSE_JSON)
|
response_type = d.get('response_type', RESPONSE_JSON)
|
||||||
hc = HttpClient()
|
hc = HttpClient()
|
||||||
|
print(f'{url=}, {method=}, {_params=}, {_data=}, {_headers=}')
|
||||||
resp_data = await hc.request(url, method, response_type=response_type,
|
resp_data = await hc.request(url, method, response_type=response_type,
|
||||||
params=_params,
|
params=_params,
|
||||||
data=None if _data == {} else json.dumps(_data),
|
data=None if _data == {} else json.dumps(_data),
|
||||||
headers=_headers)
|
headers=_headers)
|
||||||
|
print(f'{resp_data=}')
|
||||||
if resp_data is None:
|
if resp_data is None:
|
||||||
raise Exception(f'request error:{url=}\n{method=}\n{response_type=}\n{_params=}\n{_headers=}')
|
raise Exception(f'request error:{url=}\n{method=}\n{response_type=}\n{_params=}\n{_headers=}')
|
||||||
errfield = d.get('error_field')
|
errfield = d.get('error_field')
|
||||||
|
Loading…
Reference in New Issue
Block a user