Wordpress REST API encountered an error - cURL error 7 #1513
Unanswered
june415
asked this question in
Support Requests
Replies: 3 comments 4 replies
-
Same problem on all my sites with Ubuntu 18.04 and EE. Watching |
Beta Was this translation helpful? Give feedback.
0 replies
-
I actually found the answer in an earlier discussion here. Add to /etc/hosts: site.ip.add.ress example.com Then run |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hello, @june415! Have you resolved your problem? These were the steps I took to resolve mine:
That is it! I hope I could help you. Saúde! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Recently I installed EE4 on the new OS and move the existing wordpress websites to the new server. Everything seems works well except wordpress REST API doesn't work.
The error message as below:
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.
The REST API request failed due to an error.
Error: cURL error 7: failed to connect to myexample.site port 443: Connection refused(http_request_failed).
The port 80 & 443 is available and I checked firewall seems no issue as well.
Then I spent a lot time to google and found below solution to fix the issue.
Add extra_hosts at docker-compose file.
extra_hosts:
- myexample.site: new_server_ip
However, I'm not able to access /ee-admin tool after added extra_hosts. I receive "403 Forbidden". Before that I had no issue to visit.
I think there is something to do with docker-compose. But I'm totally new with docker.
Can anyone advise me how i should configure the docker setting?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions