(500) Internal Server Error

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
webtech4rindia
User
Posts: 11
Joined: Fri Dec 12, 2014 11:56 am

(500) Internal Server Error

Post by webtech4rindia » Thu Dec 18, 2014 10:57 am

Job submission URL

https://rest4.bullhornstaffing.com/rest ... ken={TOKEN}

Json Body:
{"Candidate":{"id":121478},"jobOrder":{"id":8390},"dateAdded":1418933972,"status":"New Lead","isDeleted":false,"isHidden":false,"source":"Internet"}


Web Request Method code

Code: Select all

//send put request
                var httprequest = WebRequest.Create(Url) as HttpWebRequest;
                httprequest.Method = "PUT";

                httprequest.ContentType = "application/json";
                httprequest.ContentLength = jsonBody.Length;
                httprequest.Headers["User-Agen"] = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36";
                httprequest.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
                httprequest.Referer = "https://auth.bullhornstaffing.com";
             
		 //write parameters 
                
			StreamWriter requestWriter = new StreamWriter(httprequest.GetRequestStream());
                requestWriter.Write(jsonBody);
                requestWriter.Close();

                //get response
                var responseReader = new StreamReader(httprequest.GetResponse().GetResponseStream());

                //get json string
                var jsonString = responseReader.ReadToEnd();
                return jsonString;
                }
                


Error: The remote server returned an error: (500) Internal Server Error.

I'm getting same sort of error for most of PUT Web Request method, like education,skills, uploading file.

webtech4rindia
User
Posts: 11
Joined: Fri Dec 12, 2014 11:56 am

Re: (500) Internal Server Error

Post by webtech4rindia » Tue Dec 23, 2014 1:04 pm

Hello Having same issue while submitting a file to candidate profile.

URL:
https://rest4.bullhornstaffing.com/rest ... ype=SAMPLE

Json Boby:

Code: Select all

{"externalID":"portfolio","fileContent":"Bit file size","fileType":"SAMPLE","name":"635549681576863940OTJ .docx"}

 
Getting same error: 500

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: (500) Internal Server Error

Post by s.emmons » Tue Dec 23, 2014 3:23 pm

Hi webtech4rindia,

Can you please have an authorized contact for your client submit a ticket to Bullhorn Support?

We need your client's information to troubleshoot this further. One of our analysts will be able to assist.

I was also curious though, are you able to make any calls after going through the oAuth and login process?
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

webtech4rindia
User
Posts: 11
Joined: Fri Dec 12, 2014 11:56 am

Re: (500) Internal Server Error

Post by webtech4rindia » Fri Dec 26, 2014 9:37 am

Hello Emmons,'

Thank you for your response.

Well i was able to create a candidate and search for candidate by first name, last name and email address and both case getting detail about candidate.


In fact i'm getting issue only when i'm trying to submit candidate for the job or submit File to candidate account.

Not sure issue with owner ship of account.

Ticket id: Ticket 01893443: Internal Server Error when Submitting. Already submitted by client.

Thanks,
-Ajit

webtech4rindia
User
Posts: 11
Joined: Fri Dec 12, 2014 11:56 am

Re: (500) Internal Server Error

Post by webtech4rindia » Mon Dec 29, 2014 11:10 am

Hello Emmons,

Any finding on the ticket yet or any information regarding the issue.

Let me know if you need any further information.

Many Thanks,
-Ajit

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: (500) Internal Server Error

Post by s.emmons » Tue Dec 30, 2014 10:27 am

Hi Ajit,

The ticket is assigned to one of our Support analysts and is currently under investigation.

For further updates on this issue, please reach out directly via the ticket.

Thanks!
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

kevivmatrix
User
Posts: 3
Joined: Thu Feb 12, 2015 9:33 am

Re: (500) Internal Server Error

Post by kevivmatrix » Wed Feb 18, 2015 1:41 pm

Hi Ajit and Emmons,

Were you able to fix this issue, I am getting similar issue when I try to create an event subscription for an entity. Could you please help, it is really important.

Thanks

Post Reply