Title: WordPress API db_insert_error
Last modified: July 9, 2024

---

# WordPress API db_insert_error

 *  [ibrahimbilgic](https://wordpress.org/support/users/ibrahimbilgic/)
 * (@ibrahimbilgic)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wordpress-api-db_insert_error/)
 * I want to publish content on my site with WordPress’s wp-json/wp/v2/posts API,
   but I am getting the following error. How can I solve the problem?
 * { code: ‘db_insert_error’, message: ‘The post could not be inserted into the 
   database.’, data: { status: 500 }, additional_data: [ ‘WordPress database error:
   The following field could not be processed: post_content. The value sent may 
   be too long or contain invalid data.’ ] }

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wordpress-api-db_insert_error/#post-17394910)
 * Please tell us how you made an API request to insert a post. How did you authorize
   the request? In particular what sort of content did you try to insert? What other
   data was sent with the request?

Viewing 1 replies (of 1 total)

The topic ‘WordPress API db_insert_error’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [wordpress api](https://wordpress.org/support/topic-tag/wordpress-api/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/wordpress-api-db_insert_error/#post-17394910)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
