Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

WebApi i Identity Register User problem

[es] :: .NET :: ASP.NET :: WebApi i Identity Register User problem

[ Pregleda: 1562 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

pl4stik
Senior .NET programmer/Consultant
oDesk
NI na nebu NI na zemlji

Član broj: 173596
Poruke: 713
*.dynamic.isp.telekom.rs.

Sajt: xx-auth.com.azhar.arvixe...


+31 Profil

icon WebApi i Identity Register User problem11.01.2017. u 20:31 - pre 67 meseci
Napravio sam WebAPI i integrisao Identity tako da radi OK i vraca sve sto treba ali na localhost, cim to publikujem na host opet radi ali ne vraca greske samo BadRequest ?!?! Znaci isto je sve.
Evo upita
Request na localhost
Code:

Heeader
Accept: application/json
Content-Type: application/json
Host: localhost:4193
Content-Length: 63
Body
{"Email":"[email protected]","Password":"d","ConfirmPassword":"d"}

Response sa localhosta
Code:

HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Authorization,Session, Accept, Origin, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Date, X-Api-Version, X-File-Name
Access-Control-Allow-Methods: POST,GET,PUT,PATCH,DELETE,OPTIONS
X-AspNet-Version: 4.0.30319
X-SourceFiles: =?UTF-8?B?RDpcV2ViU2l0ZXMxMlxSVEdQU1RyYWNrZXJcUlRHUFNUcmFja2VyXGFwaVxBY2NvdW50XFJlZ2lzdGVy?=
X-Powered-By: ASP.NET
Date: Wed, 11 Jan 2017 10:47:08 GMT
Content-Length: 142

{"$id":"1","Message":"The request is invalid.","ModelState":{"$id":"2","model.Password":["The Password must be at least 6 characters long."]}}

Request na remote host
Code:

Header
Accept: application/json
Content-Type: application/json
Host: znamen.rs.azhar.arvixe.com
Content-Length: 63
Body
{"Email":"[email protected]","Password":"d","ConfirmPassword":"d"}

Response sa localhosta
Code:

HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html
Expires: -1
Server: Microsoft-IIS/8.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Authorization,Session, Accept, Origin, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Date, X-Api-Version, X-File-Name
Access-Control-Allow-Methods: POST,GET,PUT,PATCH,DELETE,OPTIONS
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 11 Jan 2017 11:09:32 GMT
Content-Length: 11

Bad Request

Jel ima neko neki predlog sta bi moglo da bude ?
To sto nekoliko miliona ljudi tvrdi da nisi u pravu ne znaci da stvarno nisi - Frank Zappa

https://youtu.be/DLe358DPGXU
 
Odgovor na temu

pl4stik
Senior .NET programmer/Consultant
oDesk
NI na nebu NI na zemlji

Član broj: 173596
Poruke: 713
*.dynamic.isp.telekom.rs.

Sajt: xx-auth.com.azhar.arvixe...


+31 Profil

icon Re: WebApi i Identity Register User problem11.01.2017. u 21:11 - pre 67 meseci
Problem je bi u postavci servera tako da kad sam stiklirao
ASP.NET: Show detailed ASP.NET errors in browser
poceo je da vraca sve kako treba. Cheers
To sto nekoliko miliona ljudi tvrdi da nisi u pravu ne znaci da stvarno nisi - Frank Zappa

https://youtu.be/DLe358DPGXU
 
Odgovor na temu

[es] :: .NET :: ASP.NET :: WebApi i Identity Register User problem

[ Pregleda: 1562 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.