没有找到短信模版对应的发送渠道
错误处理 349
版本号:
后端5.1.0
错误信息:
2024-07-30 15:28:15.574 DEBUG 3260 --- [essageThread_10] p.s.p.f.c.d.m.6.selectListByPage : ==> Parameters: demo.IndicatorGrouping(String), ON_DELETE(String), ON_UPDATE(String), true(Boolean), 580(Long)
2024-07-30 15:28:15.628 DEBUG 3260 --- [essageThread_10] p.s.p.f.c.d.m.6.selectListByPage : <== Total: 1
2024-07-30 15:28:15.698 DEBUG 3260 --- [ask$demo-1-exeO] p.s.p.f.c.d.m.6.selectListByPage : ==> Preparing: SELECT COUNT(1) FROM message_message_source WHERE “is_deleted’ = 6 AND ‘type’ = ? AND “channel” =
2024-07-30 15:28:15.746 DEBUG 3260 --- [ask$demo-1-exeO] p.s.p.f.c.d.m.6.selectListByPage : ==> Parameters: SMS_SEND(String), CUSTOM(String)
2024-07-30 15:28:15.762 ERROR 3260 --- [ask$demo-1-exeO] p.s.p.W.app.core.task.ShortMessageTask : 短信发送失败:smsTemplate: {"channel" : "CUSTOM" , "createDate": "2024-08-13 07:24:12", "id":1, "name": “NE(H#E1",
"status": "SUCCESS", "templateCode": "001", "templateContent": "测试短信{", "templateType" : "NOTIFY", "writeDate": "2024-08-13 67:24:12"}, it:18684705607, vars: {},异常
pro.shushi.pamirs.meta.common.exception.PaminsException Createbreskpoint : 没有找到短信模版对应的发送渠道
at pro.shushi.pamirs.meta.common.exception.PanirsException$Builden.errThrow(PaminsException. java:181)
at pro.shushi.pamirs.message. engine. sms. DefauLtSMsSenden . Lambda$getSmsChannelConfig$5 (DefavltSMsSenden. java:104)
at java.util. optional. orElseThrow(dptional. java:299)
at pro.shushi.pamirs.message.engine.sms.DefavLtSsSenden . getSmsChanneLConfig(DefaultsMSSenden. java: 104)
at pro.shushi.pamirs.message.engine.sms.DefavLtSMSSender. smsSend@(DefaultsMSSenden. java:84)
at pro.shushi.pamirs.message. engine. sms .DefauLtSSSenden.smsSend(DefavLtSMsSenden. java:62)
at pro. shushi.pamirs.workflow.app.core. task. ShortMessageTask.. Lambda$executeTask$0 (ShortMessageTask. java:93), <9 internal Lines>
at pro.shushi.pamirs.workflow.app.core. task. ShortMessageTask. executeTask(ShontiessageTask. java:91)
at pro.shushi.pamirs.workflow.app.core.task.Task.execute(Task. java:514)
at pro.shushi.pamirs.workflow.app.core.engine.WorkflowMachine.. Lambda$executeTask$4 (Work FLowlachine. java: 495)
at pro.shushi.pamirs.workflow.app.core.engine.WorkflowMachine. Lambda$run$5(Workflowlachine. java:518)
at pro.shushi.pamirs.framework.connectors.data.tx.transaction.PamirsTransactionTemplate. Lanbda$executellithoutResult$0(PaninsTransactionTemplate. java:110)
at pro.shushi.pamirs. framework. connectors. data. tx. transaction .PamirsTransactionTemplate.. executed (PaminsTransactionTemplate. java:126)
at pro.shushi.pamirs. framework. connectors. data.tx.transaction.PaminsTransactionTemplate . executeWithoutResult (PaminsTransactionTemplate. java: 109)
你的期望:
短信正常发送
如何重现问题:
无
-
利江 评论
新建了短信通道,但是没有按
pro.shushi.pamirs.message.engine.sms.DefaultSMSSenderExtPoint
实现这个通道的默认实现参考
pro.shushi.pamirs.message.engine.sms.DefaultSMSSenderExtPoint
的例子重新实现
并且将代码里的smsTemplate.channel.value==\"ALIYUN"\
,ALIYUN 改成 短信配置管理/短信通道 中的名称或者 初始化这个字段
SmsChannelConfig.signName
4个月前