@ismcagdas does this sample for ABP + MongoDB is exists?
The issue is resolved. For security reasons, third party tool do not accept requests from localhost servers. Instead, I had to publish the snippet to a staging or production environment to run it correctly.
Thank you!
@ismcagdas No error message in server side log file. In the log file it shows; CORS policy execution successful
@ismcagdas
We are using new v11 without any modification.
Hello @musa.demir,
After overriding SetModificationAuditProperties and GetAuditUserId functions its working fine and setting the correct modified properties. Thank you!
Hi @musa.demir,
Becuase of codebase security I won't be able to share the content but we can connect over zoom call or team viewer.
Yes, please find attached!
Edited: URL removed due to sensitive data protection
Hello @ismcagdas!
Here is how I am trying to implement: error is being catched when exception occurs but still end up being in "message": "An internal error occurred during your request!",
`public async Task
await CurrentUnitOfWork.SaveChangesAsync();
if (input.SaveAndSubmit)
await SubmitInvoice(invoiceId);
}
catch (Exception ex)
{
if (ex is AbpDbConcurrencyException)
{
var inv = await _invoiceRepo.FirstOrDefaultAsync(i => i.InvoiceNumber.ToLower().Equals(input.InvoiceNumber.ToLower()));
if (inv != null)
return inv.Id; // Here it returns the value but it throws the error instead of returning the invoiceId
throw ex;
}
else
throw ex;
}
return invoiceId;
}`
Response
{ "result": null, "targetUrl": null, "success": false, "error": { "code": 0, "message": "An internal error occurred during your request!", "details": null, "validationErrors": null }, "unAuthorizedRequest": false, "__abp": true }
Here actual response should be end up being returning InvoiceId.