Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rshreve

    (@rshreve)

    This is the main part of the entry of the webhook-deliveries log showing the error message. The truncated part is the body of my custom apps response since it’s throwing errors due to missing order info.

    2024-10-04T07:38:20+00:00 Info Array
    (
    [Webhook Delivery] => Array
    (
    [Delivery ID] => a6b370fd4e8983c83b9ddbf5a0548b58
    [Date] => Oct 4, 2024 @ 7:38
    [URL] => https://[redacted].com/api/orders/update
    [Duration] => 0.88327
    [Request] => Array
    (
    [Method] => POST
    [Headers] => Array
    (
    [User-Agent] => WooCommerce/9.3.3 Hookshot (WordPress/6.6.2)
    [Content-Type] => application/json
    [X-WC-Webhook-Source] => https://[redacted].com/
    [X-WC-Webhook-Topic] => order.updated
    [X-WC-Webhook-Resource] => order
    [X-WC-Webhook-Event] => updated
    [X-WC-Webhook-Signature] => DE0dOaWhRLOsoLuzyGyba1hBuvtOLyfy+RmnbDQvxFc=
    [X-WC-Webhook-ID] => 2
    [X-WC-Webhook-Delivery-ID] => a6b370fd4e8983c83b9ddbf5a0548b58
    )

    )

    [Body] => {\"code\":\"rest_no_route\",\"message\":\"No route was found matching the URL and request method.\",\"data\":{\"status\":404}}
    [Response] => Array
    (
    [Code] => 500
    [Message] => Internal Server Error
    [Headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [server] => nginx
    [date] => Fri, 04 Oct 2024 07:38:20 GMT
    [content-type] => text/html; charset=UTF-8
    [cache-control] => no-cache, private
    [pragma] => no-cache
    [expires] => -1
    [x-ratelimit-limit] => 60
    [x-ratelimit-remaining] => 59
    [access-control-allow-origin] => *
    )

    )

    [Body] =>

    //////// TRUCATED INTENTIONALLY /////////

    Okay, I’m working on some code that signs out a user if they try to access a site they don’t belong to and then uses wp_authenticate hooks to prevent them from logging into a site they don’t belong to. I’ll keep this thread updated if I get that to work.

    Hi! I’m actually wondering the same thing. My issue is that each of my sites are intended for a specific audience like employees of a company or members of a sports team. Registrations are restricted on domain on them and I’d like to prevent other users from being able to register for site of which they are not an approved member. Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)