Hi,
Thanks for your suggestion. I was able to fix the issue.
Thanks.
Hi,
I implemented auditing using IAuditingManager. On the Host side, IntegrationServicesTimeCardServiceModule class, the following code has been added:
app.UseAuditing()
On the Module (Services) side, the following code has been added:
Configure<AbpAuditingOptions>(options =>
{
options.IsEnabled = true;
options.IsEnabledForGetRequests = true;
options.ApplicationName = configuration.GetValue<string>("ApplicationName");
});
There are no errors when executing the application and testing any endpoint. However, there are no entries in the [AuditLoggingService_dev].[dbo].[AbpAuditLogs] table.
I shared a One Drive link with you so that you can review all code on the Host and Module sides. Please let me know what is incorrect with the implementation and your suggestion on how to fix it.
Thanks.
Hi,
I did more troubleshooting and fixed the issue:
Replaced the following:
context.Services.AddSingleton<AmazonSQSClient>(new AmazonSQSClient());
with:
context.Services.AddSingleton(new AmazonSQSClient(awsRegionEndpoint));
Thanks for your assistance.
Hi,
The information from our log which is also stated in the Exception details/Stack Trace portion of the ticket is :
Request reached the end of the middleware pipeline without being handled by application code. Request path: GET http://dev.web-gateway.integrationservices.dev.aws.test.com/api/client/v1/test/contractlocations, Response status code: 404
Eventually, we were able to figure out the issue.
Thanks.
Hi,
Everything works on my side locally as it is on your side. As previously stated, when we deploy to our dev server, then the Client endpoints fail with 404.
Thanks.
Hi,
Do you have an insight into the issue? Do you need any more information than provided?
We would like to resolve the issue as we need to get it deployed soon.
Thanks.
Hi,
The version we are testing has project reference to Client module. Testing locally (localhost), the Client endpoints work.
When deployed and using Nuget packages for Client and Project, the endpoints for Project work. We get the 404 error for Client endpoints.
I have updated the csproj file on the OneDrive location shared with you to include project references to Client module. You will have to update the location to the one appropriate for yours via Abp Studio.
Thanks
Hi,
The microservice (host) has project references to Project Service (module). The screenshot above shows the relative path to the module on my machine based on our repo working folder.
Is it possible for you to change these to the Client and Project module locations on your machine? I use ABP Studio to set/fix the project references:
Please let me know if that works.
Thanks
Hi,
I have shared all the files for the three (host, service1 and service2) solutions. These are copies of all the files from my machine after successful compilation.
Looking forward to your feedback.
Thanks,
Suresh