This topic was automatically generated from Slack. You can find the original thread here.
When using the Wordpress Org component, I am getting a Autodiscovery failed error.
This topic was automatically generated from Slack. You can find the original thread here.
When using the Wordpress Org component, I am getting a Autodiscovery failed error.
I’m sorry to hear that you’re experiencing issues with the Wordpress Org component. The Autodiscovery failed error typically occurs when the component is unable to find the Wordpress API endpoints. This can happen if the website URL is incorrect, or if the website is not publicly accessible. Could you please confirm that the website URL you’ve entered is correct and publicly accessible? If the problem persists, please visit https://pipedream.com/support for more support options.
How can I tell if the WORDPRESS API ENDPOINTS are publicly assessible?
You can check if the WordPress API endpoints are publicly accessible by making a GET request to the WordPress site’s REST API endpoint. The base endpoint for a WordPress site is typically in the format http://your-wordpress-site.com/wp-json/. You can use a tool like curl in the terminal, or an HTTP client like Postman to make the request. Here’s an example using curl: bash curl http://your-wordpress-site.com/wp-json/ Replace http://your-wordpress-site.com with your actual WordPress site URL. If the API endpoints are publicly accessible, you should receive a JSON response with information about the various API routes. If not, you might receive an error message or an empty response. Please note that some WordPress sites may have custom URL structures or security plugins that might change the default API endpoint or restrict access. If you’re having trouble, you might need to check with the site administrator or refer to the site’s documentation.
How can I tell if the WORDPRESS API ENDPOINTS are publicly accessible via POST?
To check if the WordPress API endpoints are publicly accessible via POST, you can use a tool like curl or Postman to make a POST request to the endpoint. Here’s an example using curl: bash curl -X POST -H "Content-Type: application/json" -d '{"key1":"value1", "key2":"value2"}' http://your-wordpress-site.com/wp-json/sample-endpoint Replace http://your-wordpress-site.com/wp-json/sample-endpoint with your actual WordPress API endpoint and {"key1":"value1", "key2":"value2"} with your actual data. If the API endpoint is publicly accessible, you should receive a response from the server. If not, you might receive an error message. Please note that some WordPress sites may have security plugins that might restrict access to POST requests. If you’re having trouble, you might need to check with the site administrator or refer to the site’s documentation.
I have no idea how to do this. Can you point me in the right direction?
I don’t really know either, I’ve never worked with the Wordpress API. :man-shrugging:
And all the custom plugins that can modify the behavior of the API make this even more tricky.
Even if I spun up my own site and made something work, there’s no guarantee it would work for someone else. :man-shrugging: