LanceMcCarthy / MvpApi

An application for Microsoft MVPs to easily browse and upload contributions
MIT License
36 stars 10 forks source link

Upload Error - Product Group Feedback #83

Closed LanceMcCarthy closed 4 years ago

LanceMcCarthy commented 5 years ago

If you select Product Group Feedback as the ContributionType, and POST it to the https://mvpapi.azure-api.net/mvp/api/contributions? endpoint, the API returns a 200 response.

However, the response is HTML, not JSON data, and the activity is never added to the MVP's activities history.

Thus, the response cannot be deserialized properly and throws an expected Json.NET exception:

Object reference not set to an instance of an object.
LanceMcCarthy commented 5 years ago

The API is returning a 200 code but weirdly returns MVP website HTML.

Of course, because this is not the expected JSON response, an exception occurs deserializing the result:

Here's the response (it's a large HTML view of the mvp website home page, I shortened it to just clarify that it's a view and not a json response):

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" class="" lang=en-us>

</html>
LanceMcCarthy commented 5 years ago

Updating the thread - the MVP API development team has been notified, they've acknowledged the issue and are working on it.