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

TypeError: unsupported operand type(s) for +: 'type' and 'str' #460

Open
Xzonn opened this issue Oct 3, 2021 · 0 comments
Open

TypeError: unsupported operand type(s) for +: 'type' and 'str' #460

Xzonn opened this issue Oct 3, 2021 · 0 comments

Comments

@Xzonn
Copy link

Xzonn commented Oct 3, 2021

  • Python Version: 3.9.7
  • aliyunsdkcore Version: 2.13.35
  • API: UpdateDomainRecordRequest
TypeError: unsupported operand type(s) for +: 'type' and 'str'

Stack:

Traceback (most recent call last):
  File "c:\Codes\Web\ddns\ddns.py", line 38, in <module>
    response = client.do_action_with_exception(request)
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\client.py", line 498, in do_action_with_exception
    status, headers, body, exception = self._implementation_of_do_action(acs_request)
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\client.py", line 333, in _implementation_of_do_action
    return self._handle_retry_and_timeout(endpoint, request, signer)
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\client.py", line 401, in _handle_retry_and_timeout
    status, headers, body, exception = self._handle_single_request(endpoint,     
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\client.py", line 423, in _handle_single_request
    http_response = self._make_http_response(endpoint, request, read_timeout, connect_timeout,
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\client.py", line 286, in _make_http_response
    header, url = signer.sign(self._region_id, request)
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\auth\signers\access_key_signer.py", line 35, in sign
    url = request.get_url(region_id, cred.access_key_id, cred.access_key_secret)
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\request.py", line 324, in get_url     
    url, string_to_sign = rpc_signer.get_signed_url(
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\auth\composer\rpc_signature_composer.py", line 76, in get_signed_url
    signature = __get_signature(string_to_sign, secret, signer)
  File "C:\Program Files\Python39\lib\site-packages\aliyunsdkcore\auth\composer\rpc_signature_composer.py", line 68, in __get_signature
    return signer.get_sign_string(string_to_sign, secret + '&')
TypeError: unsupported operand type(s) for +: 'type' and 'str'
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