Coder Social home page Coder Social logo

Comments (7)

realLiangshiwei avatar realLiangshiwei commented on May 24, 2024

Please provider a small project to reproduce this.

from abp.

cethink avatar cethink commented on May 24, 2024

Please provider a small project to reproduce this.

@realLiangshiwei EcommerceSeckills.zip

image

image

"RemoteServices": {
  "productservice": {
    "BaseUrl": "https://localhost:44385"
  }
}
context.Services.AddHttpClientProxy<IProductService>("productservice");

from abp.

realLiangshiwei avatar realLiangshiwei commented on May 24, 2024

First:

context.Services.AddHttpClientProxy<IProductService>("productservice");

The application uses productservice as the service name, but you have not configured it for the controller. The default service name is app and default.

image image

Second:

You changed the the default json PropertyNamingPolicy.
You need to change the JsonSerializerOptions of the ApiDescriptionFinder as well.

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
     .....
     ApiDescriptionFinder.DeserializeOptions.PropertyNamingPolicy = null;
}

from abp.

cethink avatar cethink commented on May 24, 2024

@realLiangshiwei I'm sorry, I tried what you said, but it doesn't work. Can you upload the modified success code zip pack? Thanks

from abp.

cethink avatar cethink commented on May 24, 2024

Thanks, I made a mistake, it works now! 👍

from abp.

cethink avatar cethink commented on May 24, 2024

@realLiangshiwei Can you help to solve this questions? Thanks.
https://flowus.cn/cethink/share/397dd530-2e8e-4699-8df6-71429e6b38c8
EcommerceSeckills.zip

from abp.

realLiangshiwei avatar realLiangshiwei commented on May 24, 2024

I think this is your usage problem, you should check it first.
I'm closing this,because this original question has been solved

from abp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.