• Resolved alexcitos19

    (@alexcitos19)


    Hi!

    I have created 2 webhooks, the first to send the data to a URL when creating a customer and the other to send the data to another URL when creating a new order.

    When I am logged in as an administrator it does not have any problem and sends the data well in the json format desired by the client.

    But when I’m not logged in, the webhooks stop, they don’t send, and they only do it when I log in again as WordPress administrator.

    Of course this is not a good solution as I require this to be done automatically.

    What should I do so that this does not happen and is automatic without being logged in as an administrator at all times?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Hi there Alex,

    Webhooks shouldn’t be impacted by logging-in or logged-out. I’d suggest that you start troubleshooting your webhooks deliveries using this tool:

    https://webhook.site/

    It’s a very handy way to make sure the webhooks calls are properly set, but again, it’s shouldn’t be a user role-related thing.

    Thread Starter alexcitos19

    (@alexcitos19)

    Thanks for answering!

    Will the arrival or delivery URL have something to do with an http?
    is not https the url or maybe the server that is receiving?

    Thread Starter alexcitos19

    (@alexcitos19)

    Hi there

    I have verified with the tool that you indicate in the answer, but the same happens, it remains without receiving anything until I enter the administrator. So neither is https. Could it be some IP blocking or is it necessary to put a firewall exception in CloudFlare, which is where we have DNS of the domain or something like that?

    Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Hi,

    I’m sorry it didn’t help. I’d suggest that you disable all other extensions and switch to a default theme. Also, I’d recommend you check with your host any potential restriction that could prevent this default behavior to work as expected.

    Thread Starter alexcitos19

    (@alexcitos19)

    Thanks for your help!

    Interestingly, I disabled the legacy API option and it worked perfectly. I really have no idea why but it worked. I also thank you for the API test tool.

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

The topic ‘problems with webhook with administrator login’ is closed to new replies.