Code Monkey home page Code Monkey logo

Comments (6)

chandrantwins avatar chandrantwins commented on June 3, 2024

Hi Ryan,

i am looking for this fix.

from shopify-sdk.

ryankazokas avatar ryankazokas commented on June 3, 2024

@chandrantwins i am currently working on a fix for this. I can't give you a definitive date, but I am hoping to get this released as soon as we are able to, along with a few other PR's that are ready for review. Sorry for the delay.

from shopify-sdk.

chandrantwins avatar chandrantwins commented on June 3, 2024

@ryankazokas please can you provide that fix here. advanced thanks for your support

from shopify-sdk.

ryankazokas avatar ryankazokas commented on June 3, 2024

I found that this is a bug with the way responses are being marshaled. For some reason the jersey client implementation of
Response.readEntity(....);

will close the input stream making it not possible to access it again in subsequent calls. It looks like according to the JAX-RS spec it's supposed to act like this, but the jersey implementation does not; even while buffering the entity.:

A message instance returned from this method will be cached for subsequent retrievals via getEntity(). Unless the supplied entity type is an input stream, this method automatically closes the unconsumed original response entity data stream if open. In case the entity data has been buffered, the buffer will be reset prior to consuming the buffered data to enable subsequent invocations of readEntity(...) methods on this response.

I'll be working on fixing this in the coming days.

from shopify-sdk.

chandrantwins avatar chandrantwins commented on June 3, 2024

@ryankazokas thanks for your reply, yes it need to fix ASAP, because currently we are not able to display any error message from shopify api response.

from shopify-sdk.

ryankazokas avatar ryankazokas commented on June 3, 2024

@chandrantwins we released 2.1.0 which should include the fix for error responses not being logged correctly and a few other items.
https://github.com/ChannelApe/shopify-sdk/releases/tag/2.1.0

from shopify-sdk.

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.