Page 1 of 1

(500) Internal Server Error

Posted: Thu Dec 18, 2014 10:57 am
by webtech4rindia
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.

Re: (500) Internal Server Error

Posted: Tue Dec 23, 2014 1:04 pm
by webtech4rindia
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

Re: (500) Internal Server Error

Posted: Tue Dec 23, 2014 3:23 pm
by s.emmons
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?

Re: (500) Internal Server Error

Posted: Fri Dec 26, 2014 9:37 am
by webtech4rindia
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

Re: (500) Internal Server Error

Posted: Mon Dec 29, 2014 11:10 am
by webtech4rindia
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

Re: (500) Internal Server Error

Posted: Tue Dec 30, 2014 10:27 am
by s.emmons
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!

Re: (500) Internal Server Error

Posted: Wed Feb 18, 2015 1:41 pm
by kevivmatrix
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