Skip to content

IncompleteElementContentError when getting transaction details without access #72

Closed
@krkolek

Description

@krkolek

I checked that API returns:

E00011 : Access denied. You do not have permissions to call the Transaction Details API.

But SDK raise an error:

/home/vagrant/proj/whauthorize/models.pyc in get_transaction_details(self, trans_id)
    158     def get_transaction_details(self, trans_id):
    159         transactionDetailsRequest = apicontractsv1.getTransactionDetailsRequest()
    160         transactionDetailsRequest.merchantAuthentication = self.get_merchant()
    161         transactionDetailsRequest.transId = trans_id
    162         controller = apicontrollers.getTransactionDetailsController(transactionDetailsRequest)
    163         if not settings.AUTHORIZE_TEST:
    164             controller.setenvironment(constants.PRODUCTION)
--> 165         controller.execute()
    166
    167         return controller.getresponse()

/home/vagrant/.venv/local/lib/python2.7/site-packages/authorizenet/apicontrollersbase.pyc in execute(self)
    151                 self._response = apicontractsv1.CreateFromDocument(self._httpResponse)
    152                 #objectify code
--> 153                 xmlResponse= self._response.toxml(encoding=constants.xml_encoding, element_name=self.getrequesttype())
    154                 xmlResponse = xmlResponse.replace(constants.nsNamespace1, b'')
    155                 xmlResponse = xmlResponse.replace(constants.nsNamespace2, b'')

/home/vagrant/.venv/local/lib/python2.7/site-packages/pyxb/binding/basis.pyc in toxml(self, encoding, bds, root_only, element_name)
    553         to XML anyway.
    554         """
--> 555         dom = self.toDOM(bds, element_name=element_name)
    556         if root_only:
    557             dom = dom.documentElement

/home/vagrant/.venv/local/lib/python2.7/site-packages/pyxb/binding/basis.pyc in toDOM(self, bds, parent, element_name)
    525         if need_xsi_type:
    526             bds.addAttribute(element, XSI.type, self._ExpandedName)
--> 527         self._toDOM_csc(bds, element)
    528         bds.finalize()
    529         return bds.document()

/home/vagrant/.venv/local/lib/python2.7/site-packages/pyxb/binding/basis.pyc in _toDOM_csc(self, dom_support, parent)
   2659         else:
   2660             if pyxb.GlobalValidationConfig.forDocument:
-> 2661                 order = self._validatedChildren()
   2662             else:
   2663                 order = self.__childrenForDOM()

/home/vagrant/.venv/local/lib/python2.7/site-packages/pyxb/binding/basis.pyc in _validatedChildren(self)
   2186             return []
   2187         self._resetAutomaton()
-> 2188         return self.__automatonConfiguration.sequencedChildren()
   2189
   2190     def _symbolSet (self):

/home/vagrant/.venv/local/lib/python2.7/site-packages/pyxb/binding/content.pyc in sequencedChildren(self)
    636                 break
    637             cfg = selected_xit.apply(cfg)
--> 638         cfg = self._diagnoseIncompleteContent(symbols, symbol_set)
    639         if symbol_set:
    640             raise pyxb.UnprocessedElementContentError(self.__instance, cfg, symbols, symbol_set)

/home/vagrant/.venv/local/lib/python2.7/site-packages/pyxb/binding/content.pyc in _diagnoseIncompleteContent(self, symbols, symbol_set)
    491             cfg = cfg.superConfiguration
    492         if not cfg.isAccepting():
--> 493             raise pyxb.IncompleteElementContentError(self.__instance, cfg, symbols, symbol_set)
    494         return cfg
    495

IncompleteElementContentError: (<authorizenet.apicontractsv1.CTD_ANON_71 object at 0x7f23e111d3d0>, <pyxb.utils.fac.Configuration object at 0x7f23e111d350>, [<pyxb.binding.basis.Elem
entContent object at 0x7f23e111d890>], {})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions