Git Product home page Git Product logo

Comments (3)

chen0040 avatar chen0040 commented on May 28, 2024

Hi @alexjones12345, it is very likely that your magento server api does not return the data in the way that Product class represent at the moment, the reason this can happen may be due to certain fields (e.g. custom attributes or extended attributes) in the Product class does not confirm to your magento server api call, i think the best way to fix this is if you have a test magento account that can be accessed publicly, i can write some demo codes and logging to see what goes wrong in the response JSON deserialiation by fetching data from your magento server. Alternatively, if you have the JSON response data, you can send me the JSON response data for the Product.

from android-magento-client.

chen0040 avatar chen0040 commented on May 28, 2024

@alexjones12345 the issue was caused by magento site not having a standard json representation for extension_attributes and custom_attributes, e.g., the response data for Product can have extension_attributes and custom_attributes in either JSONArray or JSONObject depending on how you configure your magento. I am currently working to address this issue by including a customer deserializer for extension_attributes and custom_attributes. it is working well with the test json response sample for Product, will deploy the new version into nexus for gradle repo

from android-magento-client.

chen0040 avatar chen0040 commented on May 28, 2024

@alexjones12345 The updated version has been deployed to the nexus, you should update your build.gradle to the following line:

compile 'com.github.chen0040:android-magento-client:1.0.5'

To see how it addresses the json response issue, please take a look at and run the ProductJsonUnitTest.java in the src/test of the latest source code of this library, it should pass

from android-magento-client.

Related Issues (2)

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.