Submitting via portal

73 views
Skip to first unread message

t...@forcit.be

unread,
Aug 24, 2016, 11:56:32 AM8/24/16
to CATS API v3
Hi

When I try to submit an application via the portals -> submit endpoint I get an error on any of the file fields. 

When I include the file field, and build the parameters as described it keeps returning me the error 'Upload resume is a required field'. 
But is included in the post body. 

With all the other fields, without file fields, there are no problems. 
This is the body i'll post to the endpoint: (https://api.catsone.nl/v3/portals/PORTAL_ID/jobs/JOB_ID). Offcourse PORTAL_ID and JOB_ID is correct. 

{"fields":[
    {"id":53212,"value":"SGVsbG8gV29ybGQ=","filename":"test.txt"}, /* upload resume file field */
    {"id":53062,"value":"string1"},
    {"id":53065,"value":"string2"},
    {"id":53068,"value":"string3"},
    {"id":53071,"value":"string4"},
    {"id":53074,"value":"string5"},
    {"id":53077,"value":"string6"},
    {"id":53080,"value":"string7"},
    {"id":53083,"value":"string8"},
    {"id":53086,"value":{"167500":true,"167503":true}},
    {"id":53089,"value":{"167455":true,"167470":true}}
]}

The response: 

{
  "message": "Validation failed.",
  "errors": [
    "Upload resume is a required field."
  ]
}

Kind regards

Anthony Allan

unread,
Aug 24, 2016, 12:59:42 PM8/24/16
to CATS API v3
Hi there,

I took a look at that specific application, and it looks like the resume field id is 53215, not 53212 like you posted above.

t...@forcit.be

unread,
Aug 24, 2016, 1:05:23 PM8/24/16
to CATS API v3
Hi Anthony

The ID was indeed not correct, I deleted the field and added it again.
The fields are automatically received with their ID's via the API.

With that ID it still does not work. 

{"fields":[
    {"id":53215,"value":"SGVsbG8gV29ybGQ=","filename":"test.txt"},
    {"id":53062,"value":"string"},
    {"id":53065,"value":"string"},
    {"id":53068,"value":"string"},
    {"id":53071,"value":"string"},
    {"id":53074,"value":"string"},
    {"id":53077,"value":"string"},
    {"id":53080,"value":"string"},
    {"id":53083,"value":"string"},
    {"id":53086,"value":{"167500":true,"167503":true}},
    {"id":53089,"value":{"167455":true,"167470":true}}
]}

Response: 

{
  "message": "Validation failed.",
  "errors": [
    "Upload resume is a required field."
  ]
}

Thanks for taking time to look at it. 
Kind regards, 

Anthony Allan

unread,
Aug 25, 2016, 10:19:39 AM8/25/16
to CATS API v3
Hi Tom,

This is turning out to be a bigger issue than initially expected. We are currently working on a fix for you. Thanks for your patience.

t...@forcit.be

unread,
Aug 25, 2016, 10:35:29 AM8/25/16
to CATS API v3
Hi Anthony

Allright, looking forward for the fix! 

Kind regards,

Anthony Allan

unread,
Aug 25, 2016, 5:46:40 PM8/25/16
to CATS API v3
The issue should be resolved now. Let me know if you have any more problem 

t...@forcit.be

unread,
Aug 30, 2016, 9:39:08 AM8/30/16
to CATS API v3
Hi Anthony

It seems to work for small files and/or text. 
What if I want to send a PDF as a resume? The base64 encoded string is just to large to work properly? 

To send the larger pdf via another endpoint would miss out on the file field the user can add in the question list.
Any solution for this?

Kind regards, 

Anthony Allan

unread,
Aug 30, 2016, 3:58:45 PM8/30/16
to CATS API v3
Hey Tom,

Looks like there was an issue with bas64 strings over 1 million characters which has been resolved now. I've tested it with pdfs over 10 MB in size, so any resume should work just fine now.

t...@forcit.be

unread,
Sep 1, 2016, 9:43:31 AM9/1/16
to CATS API v3
Hi Anthony

When I send a request to this endpoint with an pdf in base64_encoded format as the value. I still receive an error. 
It think it has to do with the '\' and so in the base64 string resulting in a not valid json. 

Do i have to encode it to something to send it properly? 

Kind regards, 

Anthony Allan

unread,
Sep 1, 2016, 9:50:12 AM9/1/16
to CATS API v3
Hi there,

I'm not sure I understand what you mean. There should be no backslashes in the string. A base64 encoded string should only include letters, numbers, underscore, dash, and possibly equals sign.

t...@forcit.be

unread,
Sep 8, 2016, 6:49:28 AM9/8/16
to CATS API v3
Hi Anthony

The problem is indeed resolved. 

Thanks!

t...@forcit.be

unread,
Oct 5, 2016, 6:33:10 AM10/5/16
to CATS API v3
Hi Anthony

Was there recent an update? Since today we are getting the same error again. 
It was working perfectly until now. Can you validate this? 

Kind regards, 

Anthony Allan

unread,
Oct 5, 2016, 12:23:08 PM10/5/16
to CATS API v3
Hi there,

Unfortunately there was a temporary issue that was preventing resume uploads. This has been resolved and it should be working for you again.
Reply all
Reply to author
Forward
0 new messages