Name is too short error | Community
Skip to main content

Name is too short error

  • September 5, 2022
  • 2 replies
  • 0 views

Matias11

Hi, I'm getting an error when I try to create a user through the /api/v2/users API request.
The description error that I get is:

{"error":"RecordInvalid","description":"Record validation errors","details":{"name":[{"description":"Name: is too short (minimum one character)","error":"ValueTooShort"}]}}

My requests is 

{

"user": {

"email": "test.user+2@email.com",

"name": "Test User",

"externalId": "test-2"

}

}

I'm sending this request using a Java WebClient. 
Any hint on what I am doing wrong?
Thanks



2 replies

  • October 20, 2022

I'm also encountering this error when creating a ticket for a new user. It appears the problem only occurs when the email address has a "+" in it, as shown above:

test.user+2@email.com

That one character is the difference in the request succeeding, or failing with "Requester: Name:  is too short (minimum one character)"


Greg29
  • October 20, 2022

Hi Tom! The issue appears to be occurring before the request is making it to us. When we get the request, there is no name attribute attached to the requester, which means it's getting stripped out in your app somewhere. I'd recommend using something like webhook.site so that you can confirm that this is occurring. I'm not familiar with the request library that you're using and it's likely that there's something in there that's causing the issue. Maybe try this with axios or if you're running node 17.5.0^, you can use fetch directly from node.