Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11366

Provide more error context on the Distribution API response

    XMLWordPrintableJSON

Details

    Description

      The API is currently responding with a very generic message when packages fail to be distributed.

      {
        "message": "an unexpected error has occurred"
      }

       

      This should be improved since there are some errors that are due to bad usage, eg: packages that are too big, and we should to provide more context to the client:

       

      {
        "message": "an unexpected error has occurred",
        "details": "Failed to create content package for requestType=ADD, paths=[/content]. Error=Can't distribute package with size greater than 1 Byte, actual 4053"
      }
      
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jose-correia José Correia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 10m
                4h 10m