Question

WordPress error: Error executing Custom Action to https://zapier.com/app/extensions/api/v1/actions/24368/run:

  • 4 February 2024
  • 17 replies
  • 87 views

Hey, I am trying to set up a Zap that changes the wordpress (WP) user role when a tag is added in ActiveCampaign (AC).
The AC-trigger part is easy and works.

But the WP part is making me tear my hair out:

Already the first part fails 

Failed to create a get user by email (custom action) in WordPress

Error executing Custom Action to https://zapier.com/app/extensions/api/v1/actions/24368/run: {"errors":[{"status":500,"code":"generic_error","title":"Error during execution: Invalid URL","detail":"Error during execution: Invalid URL"}]}

 


17 replies

Userlevel 7
Badge +14

Hi @LilyWatteau 

For us to have full context, please post screenshots with how your WP Zap step is configured.

Hey Troy, thank you, here are the steps I did: I really hope you can help figure out why it is not working! <3

sorry, I had forgotten to change the domain. But the error is the same:

 

Userlevel 7
Badge +14

@LilyWatteau 

Is your website domain “yourwebsite.com”?

 

No it is not, but  I noticed and changed that (see the reply with only two screenshots.  It still gave me the same error.

Userlevel 7
Badge +14

@LilyWatteau 

You would need these Zap steps:

  • Action: WordPress - Find User
    • by Email
  • Action: WordPress - Update User

 

 

WordPress API:

https://developer.wordpress.org/rest-api/reference/users/#list-users

https://developer.wordpress.org/rest-api/reference/users/#update-a-user

 

Try removing /{{user_email}} from the URL.

Instead add a Query Paramater

Left side: search

Right side: {{user_email}}

 

 

Thank you, Troy!

We have partial success. No more error message and it seems to find the user. It even seems to think it changed “something” in wordpress.

However … the actual user role has not been updated. 

Any idea why that may be happening?

It is getting latish here. If we don’t hear from each other tonight: Good night and I am hoping to continue tomorrow.

Your help is more appreciated than you can imagine. I lost my whole day on this and was completely lost!

Take care,
Ann.

Userlevel 7
Badge +14

@LilyWatteau 

We would need to see screenshots with how your query parameters are configured.

 

 

Like this?
 

Userlevel 7
Badge +14

@LilyWatteau 

Needs to be like this:

{{user_email}}

 

Right side: {{user_email}}

When I include the brackets then I get the error message again.

It only works, I fI leave the brackets away.

Userlevel 7
Badge +14

@LilyWatteau 

May be best to consider hiring a Certified Zapier Expert to help: https://zapier.com/experts

 

Some things to try…

Show screenshots of the DATA IN you are testing with.

 

Remove the trialing / after users in the URL

 

Remove the additional header.

 

Well I am testing Zapier to see whether I want to got with it or with another service. Doesn’t make sense to pay an expert, if I may not sign up for it in the end.

I cannot believe that I should be the only person ever to want to change wordpress user role.

I will try your suggestions and see.

My other zap  “create user” was so quick and easy. I thought that Zapier was maybe the right service for me. Now I am not so sure.

Userlevel 7
Badge +14

@LilyWatteau 

Using App APIs in Zaps is an advanced approach and the intricacies of doing so depends on the App API requirements.

It surely is. But IMO it should not require anything advanced to change a wordpress user role. It seems odd that this is not standardly available.

The create wp user exists and it was such a breeze to use. :-D

Anyhow, thank you so much for your help! I appreciate your time and effort very much.

Userlevel 7
Badge +14

@LilyWatteau 

Feedback and feature requests can be submitted via a ticket to Zapier Support to be properly logged: https://zapier.com/app/get-help

ok I just added it as a request. Thank you, Troy.

Reply