Support » Plugin: WooCommerce » IIS returns HTML on Rest Interface for Woocommerce

  • Resolved vankampenp

    (@vankampenp)



    When I do a post (create order on WooCommerce) to the V2 rest api, I get:

    <head><title>Document Moved</title></head>\n<body><h1>Object Moved</h1>This document may be found /wp-json/wc/v2/orders/21658\”>here</body>{“id”:21658,”parent_id”:0,\number\”:”21658″,”order_key”:….

    I saw the same issue here so I assume it is IIS related. I run on IIS on Plesk (let’s not have a discussion on why I should not run WordPress on IIS, I need it and it is officially supported).

    For clarity, the new order created is part of the response, and the ID number is the number of the new order.

    But the response should not contain HTML, and there is no reason to have that message in the first place.

    This happens on IIS on Azure, as well as on Plesk. It seems WordPress returns JSON and statuscode 200. but IIS attaches the Object Moved HTML.

    Has anyone seen this? Any tips how to change this behavior?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.