Comments (6)
Hi Ryan,
i am looking for this fix.
from shopify-sdk.
@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.
@ryankazokas please can you provide that fix here. advanced thanks for your support
from shopify-sdk.
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.
@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.
@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)
- dev branch fulfillmentOrder error HOT 1
- creat fulfillment error HOT 2
- SDK Documentation HOT 2
- I want to obtain the corresponding URL for the product HOT 1
- The jersey-client that comes with springboot is 2.35γThe springboot version number is <spring-boot.version>2.6.13</spring-boot.version> HOT 7
- java.lang.NullPointerException: null HOT 3
- Error Failed to instanciate HOT 1
- I want to change the inventory HOT 3
- now, I want to change the state of the product HOT 1
- Shopify error format is not readable {"errors":{"base":["The variant 'Default Title' already exists."]}}
- ShopifyErrorCodeFactory - Could not parse error message from shopify for response body HOT 2
- Refactoring long method HOT 2
- Refactoring multiple code smells long method
- java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.internal.RuntimeDelegateImpl could not be instantiated
- Create product with variants
- Documentation for this SDK HOT 1
- How to get local pickup status ? HOT 2
- Create product with DRAFT status HOT 1
- javax.ws.rs.ProcessingException: Error reading entity from input stream. HOT 3
- I saw a branch related to fulfillmentOrder last week, but I can't find it now. Was it deleted? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-sdk.