You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
params="{\"code\":\"12345\",\"product\":\"云通信\"}"print(send_sms(__business_id, "我的手机号", "云通信", "SMS_137885156", params))
# 返回b'{"Message":"params must be [a-zA-Z0-9] for verification sms","RequestId":"8AC4C6F8-F483-4AFC-87BD-30490D3A5A21","Code":"isv.INVALID_PARAMETERS"}'
难道params 不能包含子母和数字之外的字符?
简单修改demo有时能正常发送,但有时候会报错::
Traceback (most recent call last):
File "demo_sms_send.py", line 43, in <module>
"我的手机号", "我的签名", "模板号", params))
File "demo_sms_send.py", line 35, in send_sms
smsResponse = acs_client.do_action_with_exception(smsRequest)
File "我的路径/aliyunsdkcore/client.py", line 259, in do_action_with_exception
status, headers, body = self.implementation_of_do_action(acs_request)
File "我的路径/aliyunsdkcore/client.py", line 224, in implementation_of_do_action
endpoint = self._resolve_endpoint(request)
File "我的路径/aliyunsdkcore/client.py", line 174, in _resolve_endpoint
return endpoint_resolver.resolve_endpoint(self.__region_id, request, self._location_service)
File "我的路径/aliyunsdkcore/profile/endpoint/endpoint_resolver.py", line 36, in resolve_endpoint
error_msg.get_msg('SDK_INVALID_REGION_ID'))
aliyunsdkcore.acs_exception.exceptions.ClientException: SDK.InvalidRegionId Can not find endpoint to access.
难道params 不能包含子母和数字之外的字符?
简单修改demo有时能正常发送,但有时候会报错::
代码如下:
The text was updated successfully, but these errors were encountered: