What are you trying to achieve?
I am trying to create a wordpress post.
I have installed the Make plugin on wordpress and Make is able to connect to wordpress.
However, during the blog post creation step, Make displays error as follows -
“The operation failed with an error. [404] No route was found matching the URL and request method. (error code: rest_no_route)”
(Please find attached screenshots for reference)
Steps taken so far
I went through the documentation from Make and confirmed that the API end point looks good.
Also, confirmed that Make is able to successfully access Wordpress.
I have already tried to delete and recreate the wordpress post creation module on Make.
Screenshots: scenario setup, module configuration, errors
Hi @EasyPeasyRun,
Welcome to the Make community!
Be aware of the help text below the URL field. You should pass a relative path and not the full URL. Could that be the reason no route was found?
Cheers,
Henk
Thanks for quick response Henk-Operative!
Sorry, I am a beginner actually,
Can please share an example of relative path and full URL?
Sorry, meanwhile, I made a change in the wordpress module (screenshot attached for reference) and now, the error message is as follows -
“The operation failed with an error. Validation failed for 1 parameter(s).”
However, its not clear on which parameter is causing this issue?
In the URL field, you have mapped a source URL. This seems to be a full formatted URL, like:
https://your-wordpress-site.com/wp-json/wp/v2/resource
You can check the output of module 1 for what the mapped value actually is.
But what this module expects, is only the path. The patch is whatever comes after:
https://your-wordpress-site.com/wp-json/wp/v2/
(for example: users/me
)
This module asks for this path only, because it appends the path to the base url ("https://your-wordpress-site.com/wp-json/wp/v2/"
) that is given in your connection.
Hence, if you map the full url, the full url will be appended, which results in this URL being used in the reqeust:
https://your-wordpress-site.com/wp-json/wp/v2/https://your-wordpress-site.com/wp-json/wp/v2/resource
This is of course not a valid URL, and I think this is the cause of your issue.
Neither to me, I cannot see the parameters you are passing.
Thank you!
Please bear with me, I am checking to see what relative path to use for creating a new wordpress post?
Maybe this is not related to Make app.
Please find attached URL options from the RSS feed module -
Can please share any recommendation or reference from Make team for this scenario?
What WordPress module are you using? “Create a Post” or a different one?
When I try to create a wordpress connection for “Create a Post” using the Make API key, Make shows below error when the wordpress call is made to - Domain Parked With VentraIP Australia - “Status Code Error: 401”
However, when the wordpress call is made to Domain Parked With VentraIP Australia , there is no error on Make. However, the error now is as follows -
“[404] No route was found matching the URL and request method. (error code: rest_no_route).”