没有捕获的异常
xjaja opened this issue · 6 comments
开启
messageHandler.SaveResponseMessageLog();//记录 Response 日志(可选)
当发送过来的消息是加密的时候这里会报 NullReferenceException 。
<xml> <ToUserName><![CDATA[wx41ca876f0d7dbf12]]></ToUserName> <Encrypt><![CDATA[+IG3Nvwhymnx5PeD6QTle31Ngny+EOMF6UGQkyo1QsoehpdSXkTAMXPx39g8S7/WNwz5L9zPxJ4e3WxUlp2SwWwVXROh2vrdPtBGDHuoiApXucrsvoKCJ25pY2A62/MDhS51mr1ksZtSRq6ERK6LFMJxHMm3fr/g1EkApykNgwxDJLTyqTl1r51TF/PSu2T84R7ntgqqwCdY4bpN77WUf7qtA+X1evtxtHrhwwIlh3fuNSEe8M5jkciGFoUwM4d4xuv6MAWDqINqrrgKrLYoaGtRxOsLpGK9JYwMSbjjQpOHhRhq8OUcqTh7cHUnhluCL/89JtUOCQUXGlZZE1gv+ESKyH21N8mKUibiY1lxiTK2YlBPcv2ppAxHrk4pSKcBGOxeRLHnPI0m3HW36+CeCtTV16+ZTqQRx/W8GS3NosgueqE17FH+h9VCmv71RxxtX5+CtaGiLPuZZXc7sjiEyNrbwlZWyL23Lqpp3dH47gREcB0zPqQNpH5m6Jb33Rv3]]></Encrypt> </xml>
NeuChar/src/Senparc.NeuChar/MessageHandlers/MessageHandler.SaveLog.cs
Lines 90 to 95 in b6e5e0f
NeuChar/src/Senparc.NeuChar/MessageHandlers/MessageHandler.SaveLog.cs
Lines 102 to 107 in b6e5e0f
上面未加密部分处理了,下面加密的没处理
<xml> <ToUserName><![CDATA[wx41ca876f0d7dbf12]]></ToUserName> <Encrypt><![CDATA[+IG3Nvwhymnx5PeD6QTle31Ngny+EOMF6UGQkyo1QsoehpdSXkTAMXPx39g8S7/WNwz5L9zPxJ4e3WxUlp2SwWwVXROh2vrdPtBGDHuoiApXucrsvoKCJ25pY2A62/MDhS51mr1ksZtSRq6ERK6LFMJxHMm3fr/g1EkApykNgwxDJLTyqTl1r51TF/PSu2T84R7ntgqqwCdY4bpN77WUf7qtA+X1evtxtHrhwwIlh3fuNSEe8M5jkciGFoUwM4d4xuv6MAWDqINqrrgKrLYoaGtRxOsLpGK9JYwMSbjjQpOHhRhq8OUcqTh7cHUnhluCL/89JtUOCQUXGlZZE1gv+ESKyH21N8mKUibiY1lxiTK2YlBPcv2ppAxHrk4pSKcBGOxeRLHnPI0m3HW36+CeCtTV16+ZTqQRx/W8GS3NosgueqE17FH+h9VCmv71RxxtX5+CtaGiLPuZZXc7sjiEyNrbwlZWyL23Lqpp3dH47gREcB0zPqQNpH5m6Jb33Rv3]]></Encrypt> </xml>
NeuChar/src/Senparc.NeuChar/MessageHandlers/MessageHandler.SaveLog.cs
Lines 90 to 95 in b6e5e0f
NeuChar/src/Senparc.NeuChar/MessageHandlers/MessageHandler.SaveLog.cs
Lines 102 to 107 in b6e5e0f
上面未加密部分处理了,下面加密的没处理
需要发一下解密后的。
<xml> <ToUserName><![CDATA[wx41ca876f0d7dbf12]]></ToUserName> <Encrypt><![CDATA[+IG3Nvwhymnx5PeD6QTle31Ngny+EOMF6UGQkyo1QsoehpdSXkTAMXPx39g8S7/WNwz5L9zPxJ4e3WxUlp2SwWwVXROh2vrdPtBGDHuoiApXucrsvoKCJ25pY2A62/MDhS51mr1ksZtSRq6ERK6LFMJxHMm3fr/g1EkApykNgwxDJLTyqTl1r51TF/PSu2T84R7ntgqqwCdY4bpN77WUf7qtA+X1evtxtHrhwwIlh3fuNSEe8M5jkciGFoUwM4d4xuv6MAWDqINqrrgKrLYoaGtRxOsLpGK9JYwMSbjjQpOHhRhq8OUcqTh7cHUnhluCL/89JtUOCQUXGlZZE1gv+ESKyH21N8mKUibiY1lxiTK2YlBPcv2ppAxHrk4pSKcBGOxeRLHnPI0m3HW36+CeCtTV16+ZTqQRx/W8GS3NosgueqE17FH+h9VCmv71RxxtX5+CtaGiLPuZZXc7sjiEyNrbwlZWyL23Lqpp3dH47gREcB0zPqQNpH5m6Jb33Rv3]]></Encrypt> </xml>
NeuChar/src/Senparc.NeuChar/MessageHandlers/MessageHandler.SaveLog.cs
Lines 90 to 95 in b6e5e0f
NeuChar/src/Senparc.NeuChar/MessageHandlers/MessageHandler.SaveLog.cs
Lines 102 to 107 in b6e5e0f
上面未加密部分处理了,下面加密的没处理
需要发一下解密后的。
没有解密就异常了。
https://mp.weixin.qq.com/debug/
接受文本消息,微信发送过来的消息使用本地密钥解密失败时记录请求日志就会异常。
长时间没有答复,先关闭了。