Closed dracan closed 7 years ago
I hit the same problem today (422 Unprocessable Entity). The core issue is that the bundle_version and bundle_short_version field names must have quotes around them.
MultiPartFormDataContentExtensions.AddIfNotEmpty adds quotes around the field name, but that extension method isn't used by HockeyAppApiClient.CreateNewVersionAsync.
If you post the same request but with _Content-Disposition: form-data; name="bundleversion" and _Content-Disposition: form-data; name="bundle_shortversion" (using curl for example), the request succeeds.
@msjogren If you are able to, I would happily accept a PR for this. Thank you!
@gep13 I submitted a PR that addresses this since I was running into the issue as well.
@jonlipsky Beat me to it. Great, thanks!
Hi,
It's likely that this is just me using it incorrectly, but I'm struggling to get it to work. Thought I'd check here in case these are known issues. I can always try and dig a little deeper otherwise :)
I've tried with both the latest version on nuget (
master
branch), and have also compiled and tried the latest version from thedevelop
branch - but am having different issues with both ...The version on nuget does work, however it seems to create two separate entries in Hockeyapp. Looking at what my computer is sending using Fiddler, it seems to be doing a POST to create the app, then doing a further PUT with the application in it. I notice that the later version doesn't seem to do a PUT.
When I try using the latest version, it fails saying
(422) Unprocessable Entity
. Using Fiddler again, the error in the POST response body says ...I am specifying both the
Version
and theShortVersion
.Below is my cake task ...
Below is the request captured from Fidder ...
I notice that it doesn't seem to be sending most of the properties I set in the the Cake task (although the one from nuget does).
Are these known issues at the moment?
Thanks for your help, and as I say - I can always dig deeper if they're not known issues.
Thanks, Dan