Last post Sep 04, 2017 05:26 AM by Eric Du
Sep 01, 2017 07:48 PM|dbqasp|LINK
I have two json strings say json1 and json2 which I am trying to upload to azure.
I am using the following code
using (var client = new WebClient())
client.Headers[HttpRequestHeader.ContentType] = "application/json";
result = client.UploadString(azureDevUrl, "POST", jsonString);
json1 and json2 are more or less the same. json1 uploads just fine while for json2, I am getting 500 Internal Server Error. Since its not a 400 error, I am assuming it shouldn't matter what kind of json it is (However I checked and both a valid). Unfortunately,
I am unable to post those jsons here because of some proprietary information.
So I am wondering why I am getting this error but more importantly, I would like to know what should I be looking for (like troubleshooting ideas), to fix this error.
Sep 01, 2017 08:21 PM|mgebhard|LINK
A 500 error means the server code experience an exception it could not handle. This usually means you need to add proper exception handling and logging.
Sep 04, 2017 05:26 AM|Eric Du|LINK
According to your description and error information, I think this issue is a server side error, you could through the following tutorial to check the detailed message:
How do I fix “Internal Server Error 500” when running my ASP pages?
Deploying website: 500 - Internal server error:
HTTP 500 – Internal server error: