Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"internal server error" Error in POST request #1

Open
piyushkp opened this issue Jul 27, 2013 · 2 comments
Open

"internal server error" Error in POST request #1

piyushkp opened this issue Jul 27, 2013 · 2 comments

Comments

@piyushkp
Copy link

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.

@ismaelc
Copy link
Contributor

ismaelc commented Jul 28, 2013

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.

@ismaelc
Copy link
Contributor

ismaelc commented Jul 28, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants