Activities of "Karunakar"

Actually I missed to verify the update there are two methods create and update in my vendor(caller) service both are calling the core accounting service SaveAllAsync method having [HttpPost] attribute. While creating there is no errors am able to call the core accounting service SaveAllAsync method from Vendor, but while updating again getting the Forbidden error.

Below screens showing calling same service SaveAllAsync in coreaccounting from vendor service create and update methods. From Create method it is success but from update is getting Forbidden

Eurekaa.. Success I am able to call the service from another service after giving the permissions to client. Thank you for your support

There are not much logs created.. We are logged in as admin user and granted all the permissions to admin

added in both module and service projects but getting same error

Hi LiangShiwei,

In which project I need to install this package Vendor or CoreAccounting? I am calling method from vendor to core accounting. Also we have module and service projects separate, should I need to install in service or module?

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: latest
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes(micro services architecture with separate modules)
  • Exception message and full stack trace: Forbidden
  • Steps to reproduce the issue: While calling the remote api from another api appservice to appservice getting forbidden error.
  • I have a vendor enity with crud operations service in vendormodule and that is having list of addresses this address entity crud operations are in coreaccounting module.
  • after saving the vendor i need to save list of addresses belongs to this vendor while calling the address service saveall method in coreaccouning module getting forbidden error all the configgurations are made correctly.

Hi Liangshiwei, I have tried with above code but the entire record is deleted instead softdelete(IsDelete=0).

 private readonly IVendorRepository _VendorRepository;
 public async Task DeleteAsync(Guid id)
 {
     await _VendorRepository.DeleteAsync(x=>x.VendorId == id);
 }

 public interface IVendorRepository : IRepository<Vendor, Guid>, ITransientDependency
 {
 }

I will try by applying the above changes but what about DeletorId to update in DB for delete.

public enum TypeOfVendors
{
    Standard,
    CreditCard,
    Pcard,
    Pc,
    TaxAgency,
    PayrollCompany,
    ShippingPartner,
    Pdecm,
    Director,
    SalesRep,
    Messenger,
    CarService,
    Phones,
    Bidder,
    ExecutiveProducer,
    DirectorOfPhotography,
    Producer

}
Showing 1 to 10 of 23 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09