I’ve got a scenario which starts with a ‘Search Posts’ and has a connection with my Wordpress website. Finding posts does work, however if I switch it to ‘pages’, it suddenly is not working anymore and gives me the error:
The operation failed with an error. Function ‘displayError’ finished with error! Cannot read properties of undefined (reading ‘toString’)
Also, next to this, sometimes I get this error (on both the search pages as search posts):
The operation failed with an error. Function ‘fixBOM’ finished with error! Unexpected token ‘<’, " <!DOCTYPE "… is not valid JSON
I’ve tried it all; reconnection the wp connection, restarting from scratch etc etc, nothing seems to work. Please do help me out here!
I have the same error:
When I try to read my posts in WP, I get the error: 'Function ‘get’ finished with error! Function ‘fixBOM’ finished with error! Unexpected token ‘<’, " <!doctype "… is not valid JSON.
Tengo el mismo error:
Cuando trato de leer mis posts en WP recibo el error "Function ‘get’ finished with error! Function ‘fixBOM’ finished with error! Unexpected token ‘<’, " <!doctype “… is not valid JSON”
Usually the support is great from Make.com community, so I’ll wait for an update or solution. But good to know it’s not just me. If anyone has the solution, please do let us know!
Hello everyone @here, thank you for bringing this up in the community.
If you haven’t already, could you please open a support ticket with our Customer Care team? They have the right tools to investigate the issue in detail and escalate it to our developers if needed.
In the meantime, I’ll keep an eye out for any relevant updates and share anything that might help.
The issue appears to originate from the WordPress platform. Although the error message is not very specific (we are in the process of improving the message), the underlying issue is that an invalid connection to WordPress results in HTML code being returned instead of the JSON response. This is most likely caused by security plugins.
To address this, we recommend reviewing your WordPress security plugins and/or Firewall (e.g. Cloudflare) configurations to confirm that they are not blocking access to the API endpoint used by the connection.
I had my host whitelist the IP’s, but still I can’t do the wordpress connection now. Strange thing is I can do it with (get wordpress posts) but not (get wordpress pages)? And get wordpress posts only works from time to time.
I’ve also created a ticket for support, hopefully they come with the correct answer to fix all this.
Unfortunately, we cannot be able to fix the issue from our end since we cannot control what WP sends back to us, and if their API doesn’t respond with JSON, it’s because something is affecting its output.
1. (Super) Bot Fight Mode - or similar for proxies other than Cloudflare
2. WAF (Web Access Firewall) config
3. Region blocking
4. Potentially other settings
Disable ALL other plugins
Alternative: research each individual enabled plugin to see if any restrict the access to or modify the behavior of the WP APi in any way (additions, changes, blocks, new endpoints…)
I have tried all these. Still getting the same error.
So I have given up trying any automation workflow with make.
Will try with a competitor and more likely to have some luck.
If anyone has a genuine solution, would love to hear it.