Magento REST API Error 500

前端 未结 3 1865
星月不相逢
星月不相逢 2020-12-17 04:30

I am trying to get product information through Magento REST API; but results an error starting “ [message:protected] => Invalid auth/bad request (got a 500, expected HTTP/1.

3条回答
  •  借酒劲吻你
    2020-12-17 05:12

    Specifically what did it was adding the accept header to the fetch line:

    $oauthClient->fetch($resourceUrl, array(), 'GET', array('Content-Type' => 'application/json', 'Accept' => 'application/json'));
    

提交回复
热议问题