Skip to content

Instantly share code, notes, and snippets.

@nzatsepilov
Created April 17, 2017 12:55
Show Gist options
  • Save nzatsepilov/c76fc4a7986e02c8f98b6160e3dffedf to your computer and use it in GitHub Desktop.
Save nzatsepilov/c76fc4a7986e02c8f98b6160e3dffedf to your computer and use it in GitHub Desktop.
Registration fails
api/Security/Register
Parameters:
{
Email = "[email protected]";
Password = "P@55w0rd";
}
Request failed: bad request (400)
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x600000630040> { URL: http://learningapi.tew-staging.com/api/Security/Register } { status code: 400, headers {
"Cache-Control" = "no-cache";
"Content-Length" = 162;
"Content-Type" = "application/json; charset=utf-8";
Date = "Mon, 17 Apr 2017 12:54:15 GMT";
Expires = "-1";
Pragma = "no-cache";
Server = "Microsoft-IIS/8.5";
"X-AspNet-Version" = "4.0.30319";
"X-Powered-By" = "ASP.NET";
} }, NSErrorFailingURLKey=http://learningapi.tew-staging.com/api/Security/Register, com.alamofire.serialization.response.error.data=<7b224d65 73736167 65223a22 54686520 72657175 65737420 69732069 6e76616c 69642e22 2c224d6f 64656c53 74617465 223a7b22 223a5b22 4e616d65 206e696b 69746140 7468652d 65617274 68776f72 6b732e63 6f6d2069 7320616c 72656164 79207461 6b656e2e 222c2245 6d61696c 20276e69 6b697461 40746865 2d656172 7468776f 726b732e 636f6d27 20697320 616c7265 61647920 74616b65 6e2e225d 7d7d>, NSLocalizedDescription=Request failed: bad request (400)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment