We must use "rawurlencode" instead "urlencode" as stated here
Otherwise, if you have a product with whitespaces in its code, the plugin will try to fetch the product from Akeneo with this URL
/api/rest/v1/products/AWC_AP64+BUS
that will generate a 404, 'cause the correct URL is:
/api/rest/v1/products/AWC_AP64%20BUS
We must use "rawurlencode" instead "urlencode" as stated here Otherwise, if you have a product with whitespaces in its code, the plugin will try to fetch the product from Akeneo with this URL
/api/rest/v1/products/AWC_AP64+BUS
that will generate a 404, 'cause the correct URL is:/api/rest/v1/products/AWC_AP64%20BUS
Even the official API client uses the rawurlencode