commercetools / sphere-play-sdk

Java API client and helper classes for building a SPHERE.IO shop on Play 2.2
http://sphere.io
7 stars 6 forks source link

Customer/Cart/Product raise exception when not found. #101

Closed lauraluiz closed 10 years ago

lauraluiz commented 10 years ago

A request like this:

Optional<Customer> customerOpt = sphere.client().customers().byId("customerID").fetch();

Returns Optional, and yet when I request a non-existent customer, this happens:

[error] sphere - Can't parse backend response:
[404]
Request: GET https://api-v1.sphere.io/project/customers/customerID

Therefore raising an SphereException.

The same happens for the cart and product endpoint.

schleichardt commented 10 years ago

I am currently investigating this issue and I can confirm, that for the customers it does occur. I already have a guess what's wrong.

schleichardt commented 10 years ago

Fixed in https://github.com/commercetools/sphere-play-sdk/releases/tag/v0.60.0