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

HTTPErrorResponse Creating User #93

Closed
joeg10 opened this issue Mar 16, 2018 · 2 comments
Closed

HTTPErrorResponse Creating User #93

joeg10 opened this issue Mar 16, 2018 · 2 comments

Comments

@joeg10
Copy link

joeg10 commented Mar 16, 2018

I'm receiving the errors below when calling AccountController.Register. When stepping through the code is see that the method hits the correct return and userVM is correct. I'm using your Pro template, can you help me out please? Thanks

This is being hit - CreatedAtAction(GetUserByIdActionName, new { id = userVM.Id }, userVM);

These are the errors:

Failed to load resource: net::ERR_CONNECTION_RESET
alert.service.ts:176 Severity: "error", Summary: "Save Error", Detail: "One or more errors occured whilst saving your changes:", Error: "{"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":null,"ok":false,"name":"HttpErrorResponse","message":"Http failure response for (unknown url): 0 Unknown Error","error":{"isTrusted":true}}"

@AnassL
Copy link

AnassL commented Mar 19, 2018

@emonney, I have got this error from the login screen, after I changed the environment.ts url address from null to the address of my backend API 'http://localhost:5000'
When I try to log in, the app shows the modal message: "Dear Developer! It appears your backend Web API service is not running...
so, what if one would like to use localhost for the backend, how to get rid of that message ?

@joeg10
Copy link
Author

joeg10 commented Mar 21, 2018

This turned out to be a json serialization issue for me. Simplifying the returned fixed the issue.

@emonney emonney closed this as completed Mar 2, 2019
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

3 participants