Activities of "ramkumar.subramanian"

Question

Getting below error during abp.io upgrade to 8.

Please advise

Exception - Microsoft.IdentityModel.Tokens.SecurityTokenNoExpirationException: IDX10225: Lifetime validation failed. The token is missing an Expiration Time. Tokentype: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.

Below is the error message : after upgrade to abp 8.2 Please advise

Timestamp - 09/17/2024 06:55:36 +00:00 | Level - Information | Message Failed to validate the token. {"EventId":{"TypeTag":null,"Properties":[{"Name":"Id","Value":{"Value":1}},{"Name":"Name","Value":{"Value":"TokenValidationFailed"}}]},"SourceContext":{"Value":"Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler"},"RequestId":{"Value":"0HN6MOMFQJUU0:00000001"},"RequestPath":{"Value":"/api/litmusUserInfo/getUsersLanguage"},"ConnectionId":{"Value":"0HN6MOMFQJUU0"}} Exception - Microsoft.IdentityModel.Tokens.SecurityTokenMalformedException: IDX14100: JWT is not well formed, there are no dots (.). The token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtectedHeader.EncodedEncryptedKey.EncodedInitializationVector.EncodedCiphertext.EncodedAuthenticationTag'. ---> System.MissingMethodException: Method not found: 'Byte[] Microsoft.IdentityModel.Tokens.Base64UrlEncoder.UnsafeDecode(System.ReadOnlyMemory`1

We are migrating abp.io from 7.2 to 8.2 with .net 8 and deploying in AWS - ECS container

Build is successful in our pipeline but deployment fails in the code , when i call the shared service to call other microservice , i am getting below error

1.Error | Message One or more errors occurred. (Connection refused (gateway.product.qa2.internal.tasconnect:80)) {"SourceContext":{"Value":"Volo.Abp.RabbitMQ.RabbitMqMessageConsumer"}}

2.Connection refused (gateway.product.qa2.internal.tasconnect:80

We are not following the migration approch. Can you please provide me table schema with columns.

Hi Support,

We are migrating from abp.io 7.2 to version 8.2,

During our docker deployment, we are getting below error message.

Are we missing the table- "AbpSessions" ? (provide me the table structure)

Please help me to fix below issue

Exception - Npgsql.PostgresException (0x80004005): 42P01: relation "AbpSessions" does not exist

POSITION: 13 at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken) at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken) at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken) at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func4 operation, Func4 verifySucceeded, CancellationToken cancellationToken) at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository2.DeleteDirectAsync(Expression1 predicate, CancellationToken cancellationToken) at Volo.Abp.Identity.EntityFrameworkCore.EfCoreIdentitySessionRepository.DeleteAllAsync(TimeSpan inactiveTimeSpan, CancellationToken cancellationToken) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Abp.Identity.IdentitySessionManager.DeleteAllAsync(TimeSpan inactiveTimeSpan) at Volo.Abp.Identity.Session.IdentitySessionCleanupService.CleanAsync() Exception data: Severity: ERROR SqlState: 42P01 MessageText: relation "AbpSessions" does not exist Position: 13 File: parse_relation.c Line: 1409 Routine: parserOpenTable

I am trying to upgrade abp.io , Followed below steps: 1.dotnet tool update -g Volo.Abp.Cli -successful 2.abp update -successful 3.Change in the .csProj file <TargetFramework>net8.0</TargetFramework> -successful 4. After this when I build , am getting errors , because related packages should also need to upgrade example : below packages need to be updated as .net is updated form 7 to 8 <PackageReference Include="AspNetCore.HealthChecks.UI" Version="6.0." /> <PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="6.0." /> <PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="6.0." /> <PackageReference Include="IdentityModel.AspNetCore.OAuth2Introspection" Version="6.0." />

Please suggest me solution for smoot build.

tried visual studio--> manager nugget package-->updates (it didnt work)

Thanks in advance

ABP Framework version : 7.4.3

Please help me in below implementation, if user fills the form and with out saving (formgroup) navigate to another page, system should prompt confirmation popup for "cancel" and "confirm" popup if confirm=>navigate to new clicked page cancel=> stay in same page

Tried below: but it is always navigating to new page**, cannot remain in same page , if cancel is clicked **

ngOnInit(): void{ this.documentListDuplicateerror = false; this.currentUser = this.config.getOne('currentUser'); this.getDocumentConfig();

this.routeSubscription = this.router.events.subscribe((event) => {

  debugger;
  if (event instanceof NavigationEnd) {
    console.log('Navigation ended:', event.url);
    // Execute your logic here, e.g., update component state

    alert(event.url);
  }
});

}

public ngOnDestroy() {

if (this.apPayableForm.dirty) {

  const options: Partial&lt;Confirmation.Options&gt; = {
    hideCancelBtn: false,
    hideYesBtn: false,
    dismissible: false,
    cancelText: 'Cancel',
    yesText: 'Confirm'

  };

  this.confirmation
    .warn('DocHubManagement::DocHub:ChangesWillDiscard', 'DocHubManagement::DocHub:DiscardChanges', options)
    .subscribe((status: Confirmation.Status) => {

      if (status == Confirmation.Status.confirm) {

        return true;
      }
      else {
        //this.saveDocHubConfiguration();
        //if cancel then previous page
        if (this.routeSubscription) {
          this.routeSubscription.unsubscribe();
        }
      }
    });

}

return true;

//if (this.routeSubscription) {
//  this.routeSubscription.unsubscribe();
//}

}

If I call the api in postman, i am getting below error

System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII of type 'System.String' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. ---> System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII of type 'System.String' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at System.Net.Security.SslStream.ProcessAuthenticationWithTelemetryAsync(Boolean isAsync, CancellationToken cancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.SendAsyncAndRetryOnNetworkError(HttpClient httpClient, Uri uri) at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel) --- End of inner exception stack trace --- at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel) at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel) at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel) --- End of inner exception stack trace --- at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at SCV.Litmus.Shared.DecryptHttpHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\Source\SCV.Litmus\aspnet-core\shared\SCV.Litmus.Shared\Middleware\DecryptHttpHeadersMiddleware.cs:line 51 at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<

I know the above way , Is there any way i can open only one microservice project?.

When I run .csproj in one microservice , it is loading entire solution.. How to open one microservice in visual studio (dont want to load all the microservice).

Showing 1 to 10 of 10 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13