akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

404 when trying to logout #36

Closed rogerlju closed 4 years ago

rogerlju commented 4 years ago

Just installed Netcore-starter. Angular App running Ok with mock-data but I can't connect to Bundle.netcore from Angular, always getting 404 - My DevTools window in Chrome shows - zone-evergreen.js:2952 POST https://localhost:5001/auth/sign-out 404 (Not Found)

rogerlju commented 4 years ago

My Bundle.netcore window shows: info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using 'C:\Users\rogljung\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. info: Microsoft.EntityFrameworkCore.Infrastructure[10403] Entity Framework Core 2.2.2-servicing-10034 initialized 'DataContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (77ms) [Parameters=[], CommandType='Text', CommandTimeout='86400'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='86400'] SELECT OBJECT_ID(N'[EFMigrationsHistory]'); info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (24ms) [Parameters=[], CommandType='Text', CommandTimeout='86400'] SELECT [MigrationId], [ProductVersion] FROM [EFMigrationsHistory] ORDER BY [MigrationId]; info: Microsoft.EntityFrameworkCore.Migrations[20405] No migrations were applied. The database is already up to date. Hosting environment: Development Content root path: C:\Projekt\CloudshipDashboard\backend\src\Common\Common.WebApiCore Now listening on: https://localhost:5001 Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 GET https://localhost:5001/ info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 687.4627ms 404 info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 POST https://localhost:5001/auth/sign-out 0 info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[4] CORS policy execution successful. info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 36.9094ms 404 info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 OPTIONS https://localhost:5001/auth/login info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[4] CORS policy execution successful. info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 15.8618ms 204 info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 POST https://localhost:5001/auth/login application/json 64 info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[4] CORS policy execution successful. info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 6.2232ms 404 info: Microsoft.AspNetCore.Server.Kestrel[32] Connection id "0HLQ6VS5I3098", Request id "0HLQ6VS5I3098:00000002": the application completed without reading the entire request body.

rogerlju commented 4 years ago

Found the error. Closing