Activités de "vincent.goh"

I just tried on another computer and the same issue occurs in Visual Studio. Does this not happen for you in Visual Studio?

I still cannot figure out why this issue exists when the projects are run in Visual Studio but not with Tye and dotnet run. This wasn't an issue in v4.X.

Is there anything you guys can do to make the v5.X microservice solutions work in Visual Studio? Running the projects in the Visual Studio IDE is a documented method in https://docs.abp.io/en/commercial/latest/startup-templates/microservice/get-started and I believe is the easiest way for most people to develop and debug their code.

I tried with Tye and the issues went away. I didn't realize Tye is necessary for running a microservice solution in ABP v5.X. It wasn't the case in v4.X. Is it because of localhost.pfx?

If I don't want to use Tye, how do I run the various projects within Visual Studio and not have this issue?

Please see the log of the IdentityService here -> https://drive.google.com/file/d/1u_UdsrW61GUlpwodBCHS55g5p5tcZ1yq/view?usp=sharing

As you can see from the log, there are no errors in the API calls in the IdentityService. However, the errors in the browser console show:

The Blazor WebAssembly app seems to have problems processing the API call results. Please try building a new v5.1.1 microservice solution with Blazor WebAssembly and see if you have the same issues.

  • ABP Framework version: v5.1.1
  • UI type: Blazor WebAssembly
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Microservice

I first posted this issue about 3 weeks ago when I tested a new Microservice solution in ABP v5.0 (https://support.abp.io/QA/Questions/2209/Bugs--Issues-v5X#answer-71ba46af-50dd-6d75-9e94-3a01087be8f6) and I tested again with the latest v5.1.1 but the issue still persisted. There seems to be something wrong with the way API calls are handled, and the API calls are often timed out. The timeout error message in the Edge browser console shows:

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: An error occurred during the ABP remote HTTP request. (The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.) See the inner exception for details. Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.) See the inner exception for details.

You can see in the video I created here (https://www.youtube.com/watch?v=om3Yjp7bZAc) that the initial pages and their API calls work fine, but the later pages and API calls stopped working. If I wait a few minutes, the API calls will work again and then after a few more page loads and API calls, it will stop working again. Microservice solutions created on v4.4.4 didn't have such issues.

Répondre

I found that requests for API endpoints timed out often in a Blazor WebAssembly application from a new ABP 5.0 microservice solution freshly-created using the latest ABP Suite. See below for error message & exception.

An error occurred during the ABP remote HTTP request. (The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.) See the inner exception for details.Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.) See the inner exception for details.

Timeout happens after I click around in the Blazor app to send some requests. After waiting for a while, it works again but timeout will happen again after a few more clicks. Is there some kind of rate limit, or is something not working right? This is a fresh new solution from ABP Suite.

Hi Liang, if you don't mind, could you email me the changes needed for mongodb as well?

Thanks!

Hi Neozzz,

I'm trying to achieve the same thing as you but I'm still trying to figure things out. It will be great if you could share how you change the new microservice to use MongoDB while the other microservices are still using EF Core.

Thanks!

Yes, it will be incredibly useful to have the ability to generate a microservice that uses MongoDB. I believe many people will need this feature.

Look forward to that!

  • ABP Framework version: v4.4.3
  • DB provider: MongoDB

Currently in the ABP CLI, I can create a new service for a microservice solution with the following command: abp new NewService -t microservice-service-pro

However, the following command to create a microservice using MongoDB doesn't work: abp new NewService -t microservice-service-pro -d mongodb

Are there plans to create a microservice template that uses MongoDB so that we can create a new microservice using the ABP CLI or Suite?

Affichage de 11 à 20 sur 28 entrées
Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11