Page 1 of 1

Error PUTing resume

Posted: Mon Jan 14, 2019 11:38 pm
by erezarnon
Hi,

I'm trying to attach a resume to a candidate in a request that looks like the following, as described in the docs:

curl -H 'BHRestToken': XXXXXX' -H 'Authorization: Bearer XXXXXXX' -X PUT https://rest91.bullhornstaffing.com/res ... 420e749723 -F "file=@samplefile.txt"

I'm getting a 500 with {"errorMessage":"An internal error has occurred","errorMessageKey":"errors.internalError"}

Tried to attach the resume to this ticket, but got an error of "invalid file extension." It's a pdf. Anyways, I tried multiple resumes and they all give the same 500 error.

Any help would be greatly appreciated.

Thanks,
Erez

Re: Error PUTing resume

Posted: Tue Jan 15, 2019 12:15 pm
by pmularski
Greetings Erezarnon,

For a request like this, I would suggest running a quick search on the forums for previous posts. When it comes to adding resumes, there are several existing posts related to adding files onto candidate records.

viewtopic.php?f=104&t=24681&p=70294&hil ... ile#p70294

viewtopic.php?f=104&t=24706&p=70185&hil ... ile#p70185

Please review these posts, and if you continue to have difficulties, let me know.

-Pat

Re: Error PUTing resume

Posted: Wed Jan 16, 2019 8:57 pm
by erezarnon
Hi Pat,

Thanks fr the reply. I actually tried running a search for queries like "resume" before posting, but got errors that my search tokens were too common.

Both of the posts you linked talk about uploading the base64 encoded version of the file. That's ok and I was able to make it work. However, the requests are significantly better so using the /raw api would be preferred. How can I make that work?

Thanks,
Erez

Re: Error PUTing resume

Posted: Fri Jan 18, 2019 11:34 am
by pmularski
Greetings erezarnon,

This is the code snippet from the online documentation. In the example below, the file is on candidate 5097909. Does this help?

curl -X PUT \
-F "file=@samplefile.txt" \
https://rest.bullhornstaffing.com/rest- ... =portfolio

# Example Response
{"fileId": 178}

Re: Error PUTing resume

Posted: Mon Jan 21, 2019 3:52 pm
by erezarnon
That's the request I'm sending when receiving the 500 error: {"errorMessage":"An internal error has occurred","errorMessageKey":"errors.internalError"}.

Is it possible to get a more descriptive error message, or for you to check the logs on your end to let me know what the error is?

Re: Error PUTing resume

Posted: Wed Jan 23, 2019 11:05 pm
by erezarnon
That looks like the request I'm making which gives that generic 500 error. Is it possible to get a more descriptive error?