SSL certificate error swallowed mostly silently

Created on 14 November 2016, over 8 years ago
Updated 6 November 2023, over 1 year ago

This issue is located in the nanapod code as opposed to the MWS code. I am logging this for informational purposes for others.

During early testing my attempts to invoke the product feed (commerce_amazon_mws_sync_products) via the Elysia cron dashboard resulted in some "missing field" type errors (sorry i did not record them). The log contained a "SubmitFeed returned 'Internal Error' as error" error message.

I later debugged the code and discovered that client.php was getting a ssl certificate error. Aas per http://stackoverflow.com/questions/5657382/curl-php-restful-service-alwa... i altered client.php to add the following line:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

and things (but not for all things) started working correctly for me as I was able to list a book on amazon.

Note: I later discovered that there are 3 different copies of client.php under the nanapod library code. So likelt this needs to be changed in multiple places?

🐛 Bug report
Status

Active

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024