• Resolved le9193

    (@le9193)


    My website has been connected to our ERP system for 6+ years with no issues until 7/21. When we “closed” an order in our ERP system it marked the order “completed” the order in WooCommerce via our connection. That has completely stopped now. I reverted back to WC 7.8.2 (thought this might work even though this was released before the issue started) and still no solution. Here is the failed call to send update order status (not sure how to format on here), RESPONSE in bold at the end is the error:

    REQUEST

    (

    [headers] => Array

    (

    [0] => Accept: application/json

    [1] => Content-Type: application/json

    [2] => User-Agent: WooCommerce API Client-PHP/2.0.0

    )

    [method] => PUT

    [data] => Array

    (

    [order] => Array

    (

    [status] => completed

    )

    )

    [body] => {“order”:{“status”:”completed”}}

    [duration] => 0.6671

    )

    RESPONSE **(error here)**

    (

    [code] => internal_server_error

    [message] =>

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    [data] => stdClass Object

    (

    [status] => 500

    )

    [additional_errors] => Array

    (

    )

    )

    • This topic was modified 1 year, 7 months ago by James Huff. Reason: secret keys removed from public forum
Viewing 2 replies - 1 through 2 (of 2 total)
  • What you posted seems to be the log of the ERP, which just logs the failed call, but not the reason (tip: avoid posting key/secret pairs; you think you hid the website, but the link you posted is full of informations – website url and many personal data).

    You should send a debug log for the website, since the error is happening there and we need to understand what’s causing the server error (maybe a deprecated function?).

    You said you tried to revert WC version, but maybe your server PHP version was automatically upgraded and some functions got broken (this is happening lately with 7 to 8 PHP upgrade)?

    Saif

    (@babylon1999)

    Hello @le9193,

    In addition to what’s mentioned above, please try testing the API connection manually.

    For example:

    https://mysite.com/wp-json/wc/v3/products?consumer_key=ck_6eab731f3c8238fea7&consumer_secret=cs_58255b6545ad9

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Failing API calls from my ERP system to mark orders COMPLETED’ is closed to new replies.