Title: REST API error: request failed
Last modified: February 28, 2023

---

# REST API error: request failed

 *  [khgalaxy](https://wordpress.org/support/users/khgalaxy/)
 * (@khgalaxy)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/rest-api-error-request-failed/)
 * Hello, I got a message:
 * > **The Rest API encountered an error**
   > The REST API is one way that WordPress and other applications communicate with
   > the server. For example, the block editor screen relies on the REST API to 
   > display and save your posts and pages.
   > When testing the REST API, an error was encountered:
   > REST API Endpoint: [https://mydomain.com/wp-json/wp/v2/types/post?context=edit](https://mydomain.com/wp-json/wp/v2/types/post?context=edit)
   > REST API Response: (http_request_failed) cURL error 28: Operation timed out
   > after 10015 milliseconds with 0 bytes received
 * Everything in default mode (theme, settings), no third-party plugins, theme.
 * Please help me and thank you so much.
    -  This topic was modified 3 years, 3 months ago by [khgalaxy](https://wordpress.org/support/users/khgalaxy/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [gytisp](https://wordpress.org/support/users/gytisp/)
 * (@gytisp)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/rest-api-error-request-failed/#post-16513026)
 * Can you try navigating to Settings>Permalinks and changing the link structure
   from PLAIN to any of the other options, for example POST NAME and check if that
   helps?
 *  Thread Starter [khgalaxy](https://wordpress.org/support/users/khgalaxy/)
 * (@khgalaxy)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/rest-api-error-request-failed/#post-16513823)
 * [@gytisp](https://wordpress.org/support/users/gytisp/) thanks but it didn’t work…
 *  Thread Starter [khgalaxy](https://wordpress.org/support/users/khgalaxy/)
 * (@khgalaxy)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/rest-api-error-request-failed/#post-16516302)
 * Please helpppp

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘REST API error: request failed’ is closed to new replies.

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)
 * [cURL 28](https://wordpress.org/support/topic-tag/curl-28/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [khgalaxy](https://wordpress.org/support/users/khgalaxy/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/rest-api-error-request-failed/#post-16516302)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
