Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Handle unexpected errors #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

iloveitaly
Copy link
Member

@iloveitaly iloveitaly commented Mar 15, 2017

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header>
    <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2015_1.platform.webservices.netsuite.com">
      <platformMsgs:nsId>WEBSERVICES_TSTDRV1505479_03152017767690525548868369_e2edfa9</platformMsgs:nsId>
    </platformMsgs:documentInfo>
  </soapenv:Header>
  <soapenv:Body>
    <searchResponse xmlns="urn:messages_2015_1.platform.webservices.netsuite.com">
      <platformCore:searchResult xmlns:platformCore="urn:core_2015_1.platform.webservices.netsuite.com">
        <platformCore:status isSuccess="false">
          <platformCore:statusDetail type="ERROR">
            <platformCore:code>UNEXPECTED_ERROR</platformCore:code>
            <platformCore:message>An unexpected error occurred. Error ID: j0b12b3s1ecyppfhczs4e</platformCore:message>
          </platformCore:statusDetail>
        </platformCore:status>
      </platformCore:searchResult>
    </searchResponse>
  </soapenv:Body>
</soapenv:Envelope>

@iloveitaly
Copy link
Member Author

From a get request:

D, [2017-03-21T16:01:46.561986 #4] DEBUG -- : HTTPI POST request to webservices.sandbox.netsuite.com (net_http)
I, [2017-03-21T16:01:46.945765 #4]  INFO -- : SOAP response (status 500)
D, [2017-03-21T16:01:46.946699 #4] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>An unexpected error occurred.</faultstring>
      <detail>
        <platformFaults:invalidCredentialsFault xmlns:platformFaults="urn:faults_2015_1.platform.webservices.netsuite.com">
          <platformFaults:code>UNEXPECTED_ERROR</platformFaults:code>
          <platformFaults:message>An unexpected error occurred.</platformFaults:message>
        </platformFaults:invalidCredentialsFault>
        <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">sb-partners-java002.svale.netledger.com</ns1:hostname>
      </detail>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

@iloveitaly
Copy link
Member Author

D, [2017-03-30T14:10:35.711949 #4] DEBUG -- : HTTPI POST request to webservices.na2.netsuite.com (net_http)
I, [2017-03-30T14:10:36.857366 #4]  INFO -- : SOAP response (status 200)
D, [2017-03-30T14:10:36.858249 #4] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header>
    <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2015_1.platform.webservices.netsuite.com">
      <platformMsgs:nsId>WEBSERVICES_1615165_03302017529384471412135979_e507e1742de5a</platformMsgs:nsId>
    </platformMsgs:documentInfo>
  </soapenv:Header>
  <soapenv:Body>
    <getResponse xmlns="urn:messages_2015_1.platform.webservices.netsuite.com">
      <readResponse>
        <platformCore:status xmlns:platformCore="urn:core_2015_1.platform.webservices.netsuite.com" isSuccess="false">
          <platformCore:statusDetail type="ERROR">
            <platformCore:code>UNEXPECTED_ERROR</platformCore:code>
            <platformCore:message>An unexpected error occurred. Error ID: j0wh9lll1wn451lyt7hv0</platformCore:message>
          </platformCore:statusDetail>
        </platformCore:status>
      </readResponse>
    </getResponse>
  </soapenv:Body>
</soapenv:Envelope>

@iloveitaly iloveitaly force-pushed the master branch 2 times, most recently from 7185ffc to df796ee Compare May 28, 2019 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant