Skip to content

ErrorCode 3100 (InternalServerError) returned as ValidationError #300

Open

Description

@jarekwg

Curious why this code is getting bundled with the 2XXX errors...

Would make more sense to me as either

  • its own InternalServerError exception
  • SevereException (is that one a typo that's meant to be ServerException? :D)

Thanks for this SDK! Super handy! :)

Activity

  1. ej2 commented on Apr 26, 2023

    @ej2
    Collaborator

    Because the exceptions were based on an older version of the QBO API. I see now that they have updated the docs for error codes. I will try to get that updated in the next release.

  2. jarekwg commented on Apr 26, 2023

    @jarekwg
    Author

    Awesome thanks! Appreciate it!
    Amusingly, 3100 isn't mentioned in those docs at all.

    If it helps, here's the error i was getting back from quickbooks the other day:

    QuickbooksException - Error returned with status code '500': {
      "warnings":null,
      "intuitObject":null,
      "fault":{
        "error":[
          {
            "message":"message=InternalServerError; errorCode=003100; statusCode=500",
            "detail":null,
            "code":"3100",
            "element":null
          }
        ],
        "type":"SERVICE"
      },
      "report":null,
      "queryResponse":null,
      "batchItemResponse":[],
      "attachableResponse":[],
      "syncErrorResponse":null,
      "requestId":null,
      "time":1682319632796,
      "status":null,
      "cdcresponse":[]
    }
    

    Might help to map off response.status_code before jumping into the more granular quickbooks codes.

    Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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