Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento REST API fault: invalid xml

looks like my question is the same as this one: Magento Rest Api Invalid XML but it is not still answered..

I just installed magento 1.9 with sample data on my localhost and trying to test REST API. I setted REST roles and REST attributes to ALL in admin panel. But when I trying to enter in browser the following URL: http://magentohost/api/rest/products?limit=2

I receive the response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <script/>
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <faultcode>Sender</faultcode>
      <faultstring>Invalid XML</faultstring>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

error_log is empty,

access_log:

GET /magentohost/api/rest/products?limit=2 HTTP/1.1" 500

Looks like I missed something in settings.. Thanks for any help!

like image 928
Bo. Avatar asked Feb 16 '26 16:02

Bo.


1 Answers

You will need to edit your .htaccess file. On line 12 of .htaccess uncomment the line "Options -Multiviews".

like image 166
Brian Kimball Avatar answered Feb 19 '26 06:02

Brian Kimball



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!