Discussions
Town cannot be blank
yesterday(edited)
Hi guys, we are seeing this issue where no matter value we send in the "town" field it throws the error "422 Unprocurable Entity" saying "Validation Error: Town can't be blank"
This is an example payload
{
"data":{
"type":"applications",
"attributes":{
"first_name":"AO",
"last_name":"AE",
"email":"[email protected]",
"phone":"+13207661354",
"phone_iso2":"US",
"address1":"Robertsdale",
"town":"AL",
"postcode":"36567",
"country":"US",
"channel":"careers_site",
"channel_source":"Other"
},
"relationships":{
"job":{
"data":{
"type":"jobs",
"id":"490582"
}
},
"answers":{
"data":[
{
"type":"answers",
"method":"create",
"temp-id":"8fa3bfa3-4f0c-4252-9653-ca3226d279b7"
},
{
"type":"answers",
"method":"create",
"temp-id":"9b03f370-2993-4c3e-b7f2-9c975e6195f3"
},
{
"type":"answers",
"method":"create",
"temp-id":"2f3d120b-2fdc-451f-9679-8c102c132455"
},
{
"type":"answers",
"method":"create",
"temp-id":"ccec7cdc-c802-470c-9687-10f3f44bb7f1"
}
]
}
}
},
"included":[
{
"type":"answers",
"temp-id":"8fa3bfa3-4f0c-4252-9653-ca3226d279b7",
"attributes":{
},
"relationships":{
"answer_options":{
"data":[
{
"type":"answer_options",
"method":"create",
"temp-id":"answer-option-prn"
}
]
},
"question":{
"data":{
"id":"1111802",
"type":"questions"
}
}
}
},
{
"type":"answer_options",
"temp-id":"answer-option-prn",
"attributes":{
"text":"PRN"
}
},
{
"type":"answers",
"temp-id":"9b03f370-2993-4c3e-b7f2-9c975e6195f3",
"attributes":{
"number_answer":35
},
"relationships":{
"question":{
"data":{
"id":"1111801",
"type":"questions"
}
}
}
},
{
"type":"answers",
"temp-id":"2f3d120b-2fdc-451f-9679-8c102c132455",
"attributes":{
},
"relationships":{
"answer_options":{
"data":[
{
"type":"answer_options",
"method":"create",
"temp-id":"answer-option-cota---yes,-i-have-my-cota-license,-or-am-in-the-process-of-obtaining-it."
}
]
},
"question":{
"data":{
"id":"1111800",
"type":"questions"
}
}
}
},
{
"type":"answer_options",
"temp-id":"answer-option-cota---yes,-i-have-my-cota-license,-or-am-in-the-process-of-obtaining-it.",
"attributes":{
"text":"COTA - Yes, I have my COTA license, or am in the process of obtaining it."
}
},
{
"type":"answers",
"temp-id":"ccec7cdc-c802-470c-9687-10f3f44bb7f1",
"attributes":{
"boolean_answer":true
},
"relationships":{
"question":{
"data":{
"id":"1109883",
"type":"questions"
}
}
}
}
]
}
Error Sample
{
errors: [
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: "Town can't be blank",
source: [Object],
meta: [Object]
},
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: 'Answerable must exist',
source: [Object],
meta: [Object]
},
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: 'Answer must exist',
source: [Object],
meta: [Object]
},
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: 'Answerable must exist',
source: [Object],
meta: [Object]
},
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: 'Answerable must exist',
source: [Object],
meta: [Object]
},
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: 'Answer must exist',
source: [Object],
meta: [Object]
},
{
code: 'unprocessable_entity',
status: '422',
title: 'Validation Error',
detail: 'Answerable must exist',
source: [Object],
meta: [Object]
}
]
}
Could you tell me please what could be potentially wrong noting that this issue wasn't happening before.
Thanks in advance!
