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

Provide more error context on the Distribution API response

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jose-correia José Correia

            Dates

              Created:
              Updated:

              Time Tracking

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

                Slack

                  Issue deployment