abpframework / abp

Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.31k stars 3.32k forks source link

The Angular UI keep loading when I generate the proxy #5498

Closed amsaighi closed 3 years ago

amsaighi commented 3 years ago

Description

The Angular UI keep loading

1

I followed the the second tutorials " the book list Page " using Angular and EF Core . After finishing the tuto, I launched the both of projects Http.Api.Host and IdentityServer .

The issues

The API worked normally but when I try to see the result on Angular, it still loading without result,

2

When I checked on network all of status ( stylesheet or Js ) 304

3

eng-mohammed-emam commented 3 years ago

Hello,

I faced the same issue but after I added the first entity and made a table and then added the application service for this entity, the command that generates proxy worked well in the Angular project.

Hope this works with you.

amsaighi commented 3 years ago

Hello, I added a new entity, service then I generate the new proxy, after that it still loading, when I inspect the network application I get this this : localhost:4200 OpenId still pending 1

https://localhost:44335/ in Acme.BookStore.IdentityServer applicationConfigurationScript still pending 2

amsaighi commented 3 years ago

ping @mehmet-erim

mehmet-erim commented 3 years ago

Hi @amSaighi

Please check the browser console, do you see any errors?

mehmet-erim commented 3 years ago

Hi @maliming

Can you check the problem? Apparently the problem is caused by the backend.

maliming commented 3 years ago

hi @amSaighi

Please share some code. eg Application services or controllers.

amsaighi commented 3 years ago

Hi @maliming When I tried to debug and to know the root cause, I think it with backend and exactly with some abp DLL. It take a lot of time to see the result, see the screenshot

3

4

maliming commented 3 years ago

Can you share the steps to reproduce this problem?

amsaighi commented 3 years ago

Yep sure, Abp -v : 3.1.2 (Stable)

Angular -v : 10.0.10

Run : http, and identity Server, and Angular ping @maliming

maliming commented 3 years ago

hi

Can you provide detailed steps? Or a project. : )

amsaighi commented 3 years ago

Hi @maliming As I said in the top, u can try the example : https://docs.abp.io/en/abp/latest/Tutorials/Part-2?UI=NG&DB=EF with the same version of Angular and ABP

Thank you :D

maliming commented 3 years ago

I tried from scratch following the steps in the document, Can't reproduce.

[09:26:37 INF] ABP CLI (https://abp.io)
[09:26:37 INF] Version 3.1.2 (Stable)

image

amsaighi commented 3 years ago

Did you try it with ABP and Angular ? @maliming I did the test again for the 3rd time and always the same result, as soon as I get an answer I share the screen.

New project ABP Version 3.1.2 (Stable) with Angular

3

Still waiting

1

Identity server

2

amsaighi commented 3 years ago

Look, @maliming 9.7 min for openId-configuration

4

12.8 min login

5

maliming commented 3 years ago

hi @amSaighi

Are your Redis works normal?

amsaighi commented 3 years ago

ping @maliming in console I have only this us info : NgxsModule.forRoot(states, { development Mode: !environment.production })

The Angular tooks a lot of time to get the right URL, it still waiting for the answer.

amsaighi commented 3 years ago

check it please : https://github.com/amSaighi/ABP-Angular

@maliming @mehmet-erim

maliming commented 3 years ago

Can't reproduce.

image

amsaighi commented 3 years ago

it's awkward, I ll try to same example in another machine.

maliming commented 3 years ago

Are your Redis server works normal?

amsaighi commented 3 years ago

Why redis ? look the same repo in my VM Azure, I clone it and I get the same result FYI : I using EF Core with SqlServer management

1

ping @maliming

amsaighi commented 3 years ago

ping @maliming @mehmet-erim

maliming commented 3 years ago

Why redis ?

See https://github.com/abpframework/abp/issues/5023

https://github.com/amSaighi/ABP-Angular/blob/master/aspnet-core/src/Acme.BookStore.IdentityServer/appsettings.json#L12 https://github.com/amSaighi/ABP-Angular/blob/master/aspnet-core/src/Acme.BookStore.HttpApi.Host/appsettings.json#L11

amsaighi commented 3 years ago

Hello @maliming Thank you it's working perfectly. in the first I didn't get the information about Redis in the first use ABP. I installed Redis, I launched it and everything sill good.

Redis link : Redis Download Setup/Install Redis Server on Windows 10