PUT File gives "An internal error has occurred" - 02405714

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
DaveNorthCreek
User
Posts: 89
Joined: Fri Nov 20, 2015 2:04 pm

PUT File gives "An internal error has occurred" - 02405714

Post by DaveNorthCreek » Wed Jan 11, 2017 10:05 pm

This could be because there is a duplicate file in the record already, but when I test a file upload I am getting the ever-informative "An internal error has occurred."

I re-created the file upload call using Postman. I used Base64 encoding on a pdf file.
The URL (using PUT):

Code: Select all

https://rest22.bullhornstaffing.com/rest-services/[corpToken]/file/Candidate/13137?BhRestToken=...
Here is the JSON I uploaded (minus the file contents):

Code: Select all

{
	"fileContent":"...",
	"externalID":"Portfolio",
	"name":"Varys_Spider.pdf",
	"fileType":"SAMPLE",
	"description":"associated file",
	"type":"To Be Checked"
}
The response:

Code: Select all

{
  "errorMessage": "an internal error has occurred"
}

gwillmottBH
User
Posts: 88
Joined: Tue Apr 12, 2016 10:34 am

Re: PUT File gives "An internal error has occurred" - 02405714

Post by gwillmottBH » Thu Jan 12, 2017 9:58 am

Hello DavidNorthCreek,

I will do some troubleshooting and follow up with you when I have an update.

Thank you,
Greg
Greg Willmott
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
100 Summer St., 17th Floor, Boston, MA 02210
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

ColinC
User
Posts: 67
Joined: Fri Apr 08, 2016 4:54 pm

Re: PUT File gives "An internal error has occurred" - 02405714

Post by ColinC » Thu Jan 12, 2017 3:29 pm

Hello DavidNorthCreek,

I have taken over for Greg on this and I used the exact same information you used here, but with a test resume I converted (also pdf) and it went through without issue.

I would make sure your base64 converted properly, that the record is a Candidate and not a Contact. You could also try just using multipart/form uploading or parsing style as well. REST Doesn't necessarily need to be converted. Potentially if the pdf if an image based pdf that might be an issue with our system being able to handle it as well.

As for the command itself. You set it up perfectly.

Regards,
Colin
Colin Coffman
Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

DaveNorthCreek
User
Posts: 89
Joined: Fri Nov 20, 2015 2:04 pm

Re: PUT File gives "An internal error has occurred" - 02405714

Post by DaveNorthCreek » Thu Jan 12, 2017 6:28 pm

Hi Colin,

My main concern is that the code worked (with extensive testing) and was put into production months ago. Due to the surprising failure of Note creation (see other post in this forum) I took a look at the log files and saw that the PDF uploading was returning the same useless error message.

Now Greg has confirmed that there have been multiple code versions in use. I will not be making any changes to production code until it is confirmed that Bullhorn has a stable REST API in production. This has not been a confidence-inspiring few days.

gwillmottBH
User
Posts: 88
Joined: Tue Apr 12, 2016 10:34 am

Re: PUT File gives "An internal error has occurred" - 02405714

Post by gwillmottBH » Thu Jan 12, 2017 6:33 pm

Hello DavidNorthCreek,

The only variable in the REST code identified has been around the note id with quotes / no quotes. There have been no other code differences reported. I will follow up tomorrow with confirmation.

Thank you,
Greg
Greg Willmott
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
100 Summer St., 17th Floor, Boston, MA 02210
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

gwillmottBH
User
Posts: 88
Joined: Tue Apr 12, 2016 10:34 am

Re: PUT File gives "An internal error has occurred" - 02405714

Post by gwillmottBH » Fri Jan 13, 2017 10:23 am

Hello David,

We have had no other reports of differences in the REST code.

Please continue to work with Colin on this issue if you are still unable to PUT a PDF file.

Thank you,
Greg
Greg Willmott
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
100 Summer St., 17th Floor, Boston, MA 02210
617-478-9126 (US Support)
+44 800 032 2848 ext. 9131 (UK Support)

Post Reply