Error PUTing resume

Forum for users and developers of Bullhorn's new REST API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
erezarnon
User
Posts: 8
Joined: Wed Jan 09, 2019 8:04 pm

Error PUTing resume

Post by erezarnon » Mon Jan 14, 2019 11:38 pm

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

pmularski
Bullhorn Support Staff
Posts: 925
Joined: Wed Dec 31, 1969 8:00 pm

Re: Error PUTing resume

Post by pmularski » Tue Jan 15, 2019 12:15 pm

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
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131

erezarnon
User
Posts: 8
Joined: Wed Jan 09, 2019 8:04 pm

Re: Error PUTing resume

Post by erezarnon » Wed Jan 16, 2019 8:57 pm

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

pmularski
Bullhorn Support Staff
Posts: 925
Joined: Wed Dec 31, 1969 8:00 pm

Re: Error PUTing resume

Post by pmularski » Fri Jan 18, 2019 11:34 am

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}
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131

erezarnon
User
Posts: 8
Joined: Wed Jan 09, 2019 8:04 pm

Re: Error PUTing resume

Post by erezarnon » Mon Jan 21, 2019 3:52 pm

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?

erezarnon
User
Posts: 8
Joined: Wed Jan 09, 2019 8:04 pm

Re: Error PUTing resume

Post by erezarnon » Wed Jan 23, 2019 11:05 pm

That looks like the request I'm making which gives that generic 500 error. Is it possible to get a more descriptive error?

Post Reply