Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I'm using a REST api call like `rest/api/3/user` , POST,
with something like
{
"name": "name",
"emailAddress": "my.name@organization.com",
"displayName": "displayName",
"password": "asdf",
"notification": "false"
}
in the body. When I'm doing this, the api call is working and the user is created properly. However, I'm getting as a status code sometimes 500 and other times 201 without any evident reason.
Do you understand what is happening here?
The user is created properly both in the 500 cases and in the 201 cases.
Thanks
Hi Daniel,
Thanks for reaching out, and there was something very similar in the version 2 API with a POST to "rest/api/2/user", but this one was fixed already, viewable at the link below:
Also, I do know that the version 2 and Version 3 endpoints for "rest/api/X/user" are currently experimental endpoints as are not fully rolled out as stable, so some errors can be expected, but in testing this query out locally I was not able to trigger the 500 errors, and I'm only getting the 201 successful on the POST's.
If we can narrow this down I would be great to get a bug report in place to get this fixed. Are you able to spot any commonality in the queries you are running when the 500 error is being triggered vs the 201 calls?
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.