Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

500 Internal Server Error.

Stepan Matveev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2022

Hello team,

May you please assist with the following problem.

I tried to remove users from an organistation in our Jira ServiceDesk using experimental method. The link is https://docs.atlassian.com/jira-servicedesk/REST/4.17.1/#servicedeskapi/organization-removeUsersFromOrganization

Then I try to send DELETE the request "https://XXX.com/rest/servicedeskapi/organization/186/user?organizationId=186" using Postman I receive the following error message

"com.sun.jersey.api.MessageException: A message body reader for Java class com.atlassian.servicedesk.api.rest.dto.domain.organization.UsersOrganizationUpdateDTO, and Java type class com.atlassian.servicedesk.api.rest.dto.domain.organization.UsersOrganizationUpdateDTO, and MIME media type application/octet-stream was not found.\n" and 
500 Internal Server Error.

Thank you in advance!

1 answer

1 accepted

2 votes
Answer accepted
Florian Bonniec
Community Champion
August 19, 2022

Hi @Stepan Matveev 

Are you in JSM 4.17.1 or higher ?

It's experimental so it may not be available if you have an older version.

The doc do not make sense to me can you try to send the following payload instead as body and do not use parameter.

https://XXX.com/rest/servicedeskapi/organization/186/user

 

{ "usernames": [ "USERNAME" ] }

Make sure to add Content-Type header with application/json as value

 

Regards

Stepan Matveev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2022

Hello @Florian Bonniec 
Appreciate for your help, it's work for me.

Thanks a lot! :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events