Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

Getting a single product returns null. Everything else works fine. #346

Closed johndoe1395 closed 5 years ago

johndoe1395 commented 5 years ago

Hello Getting product like this makes productFactory null. Getting eg. a manufacturer in the same way is fine. I checked the request it makes from the access logs and tested it with Postman and the request is fine, it return's the products XML.

ProductFactory productFactory = new ProductFactory("/path/to/api", "mykey", ""); var productFilter = new Dictionary<string, string>() { { "id", "1" } }; var prd = productFactory.GetByFilter(productFilter, null, null);

johndoe1395 commented 5 years ago

I solved it. I was using the Nuget package and after cloning this repo and including it in my project, it is working fine. Isn't the nuget package updated? It says v.1.0.0

mowcixo commented 5 years ago

I think that's probably fixed in commit d24796d5e31a02f75df1e9e5288977b4ed2fb654 which is not on v1.0.0 we are waiting for some more changes to launch v1.0.1 soon. We will let you know.

Thanks for publishing the issue!

johndoe1395 commented 5 years ago

Thanks for the quick reply.

mowcixo commented 5 years ago

Hello @johndoe1395, we just relased v1.0.2 if you want to return to the nuget package. Thanks!

johndoe1395 commented 5 years ago

Thanks for letting me know! :)

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.