Ends in:
7 DAYS
14 HRS
2 MIN
6 SEC
Ends in:
7 D
14 H
2 M
6 S

Activities of "DNarayanaswamy"

ABP Framework version: ABP CLI 7.3.0 UI Type: Blazor WebAssembly Database System: EF Core (SQL Server) Tiered (for MVC) or Auth Server Separated (for Angular): Tiered Exception message and full stack trace:

Hi, I have a screen loader/spinner implemented in the application. When ever I set "LoadingIcon = true" the loader starts loading, this is working in every case except when we display confirmation popup before loader.

Loader/Spinner Implementation

Area where loader is not working

Can you help me display the loader on screen when Confirmation message is implemented.

Thanks

Hi , I have been trying to access this API by authenticating using OAUTH2.0 but Iam not successfull. I am getting 400-Bad Request Error. Here is the code I am using. Please call out if anything wrong done here.

[HttpGet]
public async Task<ActionResult<string>> GetLocationDetailsbyId()
{
        var tokenEndpoint = "https://test-authserver.azurewebsites.net/connect/token";
        var clientId = "TEST_Swagger";
        var clientSecret = ""; 
        var httpClient = _httpClientFactory.CreateClient();
        var formData = new Dictionary<string, string>
{
    { "grant_type", "password" },
    { "username", "*****" },         // User's username
    { "password", "*****" },      // User's password
    { "client_id", clientId },
    { "client_secret", clientSecret },
    { "scope", "TEST" }
};
        var tokenRequest = new FormUrlEncodedContent(formData);
        var tokenResponse = await httpClient.PostAsync(tokenEndpoint, tokenRequest);
        if (tokenResponse.IsSuccessStatusCode)
        {
            var tokenContent = await tokenResponse.Content.ReadFromJsonAsync<TokenResponse>();
            var accessToken = tokenContent?.access_token;
            // Now that you have the access token, you can use it to access the protected API
            var apiEndpoint = "https://test-api.azurewebsites.net/api/app/location/4640/location-details-by-id";
            var apiRequest = new HttpRequestMessage(HttpMethod.Get, apiEndpoint);
            apiRequest.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
            var apiResponse = await httpClient.SendAsync(apiRequest);
            if (apiResponse.IsSuccessStatusCode)
            {
                var apiData = await apiResponse.Content.ReadAsStringAsync();
                return Ok(apiData);
            }
            else
            {
                return StatusCode((int)apiResponse.StatusCode, "API request failed.");
            }
        }
        else
        {
            return StatusCode((int)tokenResponse.StatusCode, "Token request failed.");
        }
}

I also tried to execute the same thing via postman, it says invalid scope. But I am entering right scope, refer the scopes displayed in Main project. This is the same thing entered in PostMan This says invalid scope in PostMan.

I also tried using TEST API, TEST TEST API as scopes but still same result. Can you please guide me here?

ABP Framework version: ABP CLI 7.3.0 UI Type: Blazor Server Database System: EF Core (SQL Server) Tiered (for MVC) or Auth Server Separated (for Angular): Tiered Exception message and full stack trace:

Hi, I have an API in the main project which returns some required data. I need to use this API endpoint and get the data in external project. But this API is authorized and Authorization: Bearer Token is changing for each request. So I am not able to figure out how to get the data into my external project.

After authorization the API works perfectly fine in the main project, but having issues in accessing from external projects. Please refer on how the authorization is done.

When I navigate into Authorize I am navigated to a locked file which is present in a dll.

Can you help me out on how to access this Authorized API.

Thanks.

Hi, I have shared the full logs to your email. Please check. Thanks

Hi, I have implemented Inbox also still application is getting stuck when saving. And I have observed one behavior when I do a Save operation the application gets stuck but after some time few thousands of records are getting added in AbpEventOutbox table but after some time these records get disappeared in the table. Also these thousands of records are published to a Kafka topic I have configured.

Sample record that got added to AbpEventOutbox : { Id: DEE8596B-83BC-D8FC-44E3-3A0D7201312B ExtraProperties : {} EventName : Volo.Abp.Domain.Entities.Events.Distributed.EntityEto.Created EventData : {"entity":{"entityType":"Volo.Abp.EntityFrameworkCore.DistributedEvents.OutgoingEventRecord","keysAsString":"b2c05e79-323d-259b-cfa7-3a0d614ef330","properties":{}}}
}

Note: EventData is converted from byte to string

But I don't see any records getting added in AbpEventInbox table.

How should I proceed furthur.

Hi, I tried this approach it did not work, still Id coming up as 0.

ABP Framework version: ABP CLI 7.3.0 UI Type: Blazor Server Database System: EF Core (SQL Server) Tiered (for MVC) or Auth Server Separated (for Angular): Tiered Exception message and full stack trace:

Query: Kafka has been enabled at entity level. Upon successful DB save operation if kafka messaging service is unavailable below exception occurs and save process fails. How to avoid save process failure and show user success message? How to delink kafka process from save process?

Logs: 2023-08-30 09:52:27.773 +05:30 [DBG] Added 1 entity changes to the current audit log 2023-08-30 09:52:28.070 +05:30 [INF] Executing ObjectResult, writing value of type 'Inventory.LocationDto'. 2023-08-30 09:52:28.072 +05:30 [INF] Executed action Inventory.Locations.LocationAppService.AddLocation (Inventory.Application) in 1473.7394ms 2023-08-30 09:52:28.072 +05:30 [INF] Executed endpoint 'Inventory.Locations.LocationAppService.AddLocation (Inventory.Application)' 2023-08-30 09:52:28.073 +05:30 [DBG] Added 0 entity changes to the current audit log 2023-08-30 09:52:51.159 +05:30 [ERR] Failed while waiting for controller: Local: Timed out Confluent.Kafka.KafkaException: Failed while waiting for controller: Local: Timed out at Volo.Abp.Kafka.KafkaMessageConsumer.CreateTopicAsync() at Volo.Abp.Kafka.KafkaMessageConsumer.Timer_Elapsed(AbpAsyncTimer timer) at Volo.Abp.Threading.AbpAsyncTimer.Timer_Elapsed() 2023-08-30 09:53:56.980 +05:30 [ERR] Failed while waiting for controller: Local: Timed out Confluent.Kafka.KafkaException: Failed while waiting for controller: Local: Timed out at Volo.Abp.Kafka.KafkaMessageConsumer.CreateTopicAsync() at Volo.Abp.Kafka.KafkaMessageConsumer.Timer_Elapsed(AbpAsyncTimer timer) at Volo.Abp.Threading.AbpAsyncTimer.Timer_Elapsed()

Hi I have done the same, now the Application is running properly. But I dont see any records getting added in "AbpEventOutbox" which is created by ABP for outbox events when I modify/create entities.

The below code when added in ApplicationModule.cs class it is giving me syntax error. Plese refer below screenshot for more info.

I have Kafka messaging and Outbox event enabled in my solution. When I run application local it is refusing to connect. Please refer below log history of the project

ABP Framework version: ABP CLI 7.3.0 UI Type: Blazor Server Database System: EF Core (SQL Server) Tiered (for MVC) or Auth Server Separated (for Angular): Tiered Exception message and full stack trace:

Host Project: Logs 2023-08-23 10:32:25.479 -04:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.EventBus.AbpEventBusModule, Volo.Abp.EventBus, Version=7.2.2.0, Culture=neutral, PublicKeyToken=null: Value cannot be null. (Parameter 'serviceType'). See the inner exception for details. ---> System.ArgumentNullException: Value cannot be null. (Parameter 'serviceType') at System.ThrowHelper.Throw(String paramName) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Volo.Abp.EventBus.Distributed.OutboxSender.StartAsync(OutboxConfig outboxConfig, CancellationToken cancellationToken) at Volo.Abp.EventBus.Distributed.OutboxSenderManager.StartAsync(CancellationToken cancellationToken) at Volo.Abp.BackgroundWorkers.BackgroundWorkerManager.AddAsync(IBackgroundWorker worker, CancellationToken cancellationToken) at Volo.Abp.BackgroundWorkers.BackgroundWorkersApplicationInitializationContextExtensions.AddBackgroundWorkerAsync(ApplicationInitializationContext context, Type workerType, CancellationToken cancellationToken) at Volo.Abp.BackgroundWorkers.BackgroundWorkersApplicationInitializationContextExtensions.AddBackgroundWorkerAsync[TWorker](ApplicationInitializationContext context, CancellationToken cancellationToken) at Volo.Abp.EventBus.AbpEventBusModule.OnApplicationInitializationAsync(ApplicationInitializationContext context) at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) --- End of inner exception stack trace --- at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) at Volo.Abp.AbpApplicationBase.InitializeModulesAsync() at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app) at Inventory.Program.Main(String[] args) in C:\source\repos\Inventory\src\Inventory.HttpApi.Host\Program.cs:line 38

AuthServer : Logs 2023-08-23 10:32:18.010 -04:00 [ERR] ABP-LIC-ERROR - License check failed for 'Volo.Abp.Identity.Pro.Domain-v7.2.2.0'. You need to log in using the command abp login <username>. For more information, contact to license@abp.io.

Steps to reproduce the issue: Enable Kafka messaging and Outbox event and try to run the application

Showing 1 to 10 of 10 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06