Closed
Description
HI,
Trying to configure an Amazon Vendor Central connection and keep getting "No MDN found in the received message" when receiving a test message from Amazon.
Sending a test file to them works fine, and we are also receiving back an MDN from them.
However, when we send, we keep getting the error, and when we downloaded the received messege, it decripted properly and looks fine.
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pyas2/views.py", line 90, in post
status, detailed_status = as2mdn.parse(request_body, self.find_message)
File "/usr/lib/python3.6/site-packages/pyas2lib/as2.py", line 774, in parse
self.orig_message_id, orig_recipient = self.detect_mdn()
File "/usr/lib/python3.6/site-packages/pyas2lib/as2.py", line 856, in detect_mdn
raise MDNNotFound('No MDN found in the received message')
pyas2lib.exceptions.MDNNotFound: No MDN found in the received message
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pyas2lib/as2.py", line 559, in parse
mic_content, signature, verify_cert)
File "/usr/lib/python3.6/site-packages/pyas2lib/cms.py", line 360, in verify_message
for attr in signed_attributes.native:
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 4243, in native
raise e
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 4239, in native
self._native = [child.native for child in self]
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 4239, in <listcomp>
self._native = [child.native for child in self]
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 3777, in native
raise e
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 3773, in native
self._native[name] = child.native
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 4243, in native
raise e
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 4239, in native
self._native = [child.native for child in self]
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 4239, in <listcomp>
self._native = [child.native for child in self]
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 870, in native
self.parse()
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 935, in parse
raise e
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 919, in parse
spec_params=passed_params
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 5242, in _parse_build
return (_build(*info, spec=spec, spec_params=spec_params), new_pointer)
File "/usr/lib/python3.6/site-packages/asn1crypto/core.py", line 5178, in _build
tag
ValueError: Unknown element - context class, constructed method, tag 0
while parsing asn1crypto.core.Any
while parsing asn1crypto.cms.SetOfAny
while parsing asn1crypto.cms.CMSAttribute
while parsing asn1crypto.cms.CMSAttributes