abhishek-ram / pyas2

This repo is no longer maintained and has been moved to https://github.com/abhishek-ram/django-pyas2
GNU General Public License v2.0
47 stars 23 forks source link

Payload not viewable after signature verification error #16

Closed kurohai closed 8 years ago

kurohai commented 8 years ago

When receiving a message from a partner I get an error: Signature Verification Failed, exception message is certificate verify error.

I can see the MDN I sent back, but the original incoming message isn't saved to a file, and isn't viewable in messages page.

abhishek-ram commented 8 years ago

Saving of the message is the last step in the process and is done only after it passes all the verification. I f you still want to see the message you should turn on debugging and the message will be shown in the logs.

kurohai commented 8 years ago

The use of debugging should be a stop-gap.

Seeing what is in the message is helpful to troubleshooting certificate problems. A simple certification mismatch shouldn't require debugging. There isn't anything in the application that needs debugging at that point. It's a configuration error.

abhishek-ram commented 8 years ago

Well the message is saved by the system only after it passes all the checks, this is how its always done. And debugging here is meant exactly for the purpose you described (i.e. for use of testing the connection at the time of on-boarding). Consider for example the debugging modes used in BOTS for troubleshooting mapping and other scripts.