•  
      request #9384 [PUT/artifacts/{id}] Improve API error message (invalid field)
    Infos
    #9384
    Kevin Raymond (shaiton)
    2016-08-09 10:22
    2016-08-09 08:46
    9663
    Details
    [PUT/artifacts/{id}] Improve API error message (invalid field)
    While assigning a story to a valid user, using the /artifacts/{id} endpoint, I get back the following error message:

    {"error":{"code":500,"message":"Internal Server Error: Les champs ne sont pas valides"}}

    This is due to the user_id not being part of the right user_group. He can't be assigned to this story.
    Couldn't you be more precise in the above error? The json is correct, it works perfectly using correct user_id.

    v.8.15.99.51.
    API
    8.15
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Acknowledged
    Empty
    Attachments
    Empty
    References
    Referencing request #9384

    Follow-ups

    User avatar
    You're right, error messages could be improved. Error code also as it seems to be a client error, it should be a 4xx instead of a 500.

    • Status changed from New to Acknowledged
    User avatar
    Kevin Raymond (shaiton)2016-08-09 08:46
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes