https://developers.weixin.qq.com/doc/aispeech/confapi/thirdkefu/sendmsg.html
第三方客服系统接入- 发送客服消息
接口发送消息是报这个错
"code":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errcode":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errmsg":"Error: error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length","rid":"06482640"
这是什么原因?
这个问题解决了吗?
请问楼主最后是怎么解决的?我这里也碰到这个问题了。
curl -X post -d'{"encrypt": " <xml> <Encrypt><![CDATA[vxUyMqabnKo92pXlvPiKB0t7G9fzLBEeV9twa6orqoAj/jAs1sYIP9Wt6z/uEwI5QZvuBQaSrzFpQEfp8QBnAjjzG0WXSgSuLQfbus1r8Gb7W57wN8LIUg+astTrrDUdH8bFVmLkwd2UHZmip4Cm1KU00RQ24vJiaz23TMboH18kzsbmlAXx1oSMTdQEoS2UbGKqc1xyB+Xusr2kwvUphFC3j2M1lPtdeBRypKwiO21ZxfuxtXiMJ/OutN8zE4WXy1nH5PkRr6RfHGgOardviUTRGVtIBG9CKWPlO6TH5vLQNq6ortgnfJqYp/EQoSMkgmVzc/3x03CcZ+7GGP/7cJDG7hOgxhwMgj3UCRIoJK1Ixo6uhqv1BXDrm1J2PqPdjDI+1j5C3CDJeHnyfUhDvbORIeJvlpbLBGRXVmk58VsrMlp8ZLdIeuhZK+G3T1g2Dn45SHE7V8bMqPMW6XC+X5bYMmMI4nqC/lnLxTqV74/mZY68U/IX4g11YaBmuMeXoUEg+48oPNL1cgFP/8HX2oeFKBZm8EtuBADxcDQBjCJzZsFagKAfh3oe9aNDSf6gWV//DAAUFAL9/VFNheiilvdJD9FBMycajifVh00xbMai/d64G6omX73BfNY/ziJocdzWiCrPVXo3Nc5TwqNRAoR71Fcia/Nknf5ypBay+H88WE9Ev+1FD3g7D77TpGVlqfRX0DWO+QiG/lcqoMPtGfLNh/E2ujDxbho1JZ/QUQuk7RVOSm0T/VECoq73a0Al7TmWceVoSdPE4xh0JaV09sQVt3+fwBLcSxyMfOLWz1/Mk7FHQG6ovbzY/TKFL1/Y8V+jiFNIlsxeJWApJa+Q7jmLKHkqyEf3hDcFaxkxbb4qMfnhlVzXYZWMfoKWbBWi6j/2wnPJXv4//VPml2/+9IodgxmEVTjiN+0tmmeWr0uPJbft5esYALXUqFSS8YNPSqQVtUO9pPGumqRBbOi+7w==]]></Encrypt> <MsgSignature><![CDATA[5206a268a2589ac71269793027881143d8714229]]></MsgSignature> <TimeStamp>1683171118</TimeStamp> <Nonce><![CDATA[1320562132]]></Nonce> </xml> " }' -H "content-type:application/json" "https://chatbot.weixin.qq.com/openapi/sendmsg/Jyk46oNcndTZr3OSsstEJ6s0e0OXAK"
{"code":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errcode":"ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH","errmsg":"Error: error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length","rid":"0b517268"}% 的确会报 ERR_OSSL_EVP_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
这边测试调用sendmsg接口是没有问题的,请自查一下是否有参数写错