Kong/unirest-net

"internal server error" Error in POST request

Opened this issue · 2 comments

I have used unirest-net in my .NET web application, I am able to view the album but not able to create album from API call. it give me an error of "internal server error". Also i was not able to consume API in windows based application using Unirest-net. Please help me out.

Additional info: refers to the Mashape Lambda face recognition API

private void CreateAlbum()
        {
            HttpResponse response = Unirest.post("https://lambda-face-recognition.p.mashape.com/album")
              .header("X-Mashape-Authorization","")
              .field("album", "Something")
              .asJson();

            string albumKey = response.Body;
        }

From Piyush - I am not able to deep debug the error message, server just response with "internal server error". I guess you are right it might be an issue in Unirest but for album creation i am not uploading any file, i am just sending album name in the request and still its not working.

Hi Piyush as mentioned in email please try asString instead of asJson