Title: error: code: 400 &#8211; Precondition check failed
Last modified: January 14, 2021

---

# error: code: 400 – Precondition check failed

 *  Resolved [himanshukhanna](https://wordpress.org/support/users/himanshukhanna/)
 * (@himanshukhanna)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-code-400-precondition-check-failed/)
 * Hi, I am trying to solve this problem I have configured the Gmail API correctly
   of my account.
    It was working from previously 2-3 months, started getting the
   error today.
 * I have also tried reauthorizing the whole thing but still getting this error 
   is there a way to solve this or does it needs to be updated, that it is causing
   a problem?
 * Versions:
    WordPress: 5.5.3 WordPress MS: No PHP: 7.4.7 WP Mail SMTP: 2.5.1
 * Params:
    Mailer: gmail Constants: No Client ID/Secret: Yes Auth Code: Yes Access
   Token: Yes
 * Server:
    OpenSSL: OpenSSL 1.1.1g 21 Apr 2020 PHP.allow_url_fopen: Yes PHP.stream_socket_client():
   Yes PHP.fsockopen(): Yes PHP.curl_version(): 7.71.0
 * Debug:
    Mailer: Gmail { “error”: { “code”: 400, “message”: “Precondition check
   failed.”, “errors”: [ { “message”: “Precondition check failed.”, “domain”: “global”,“
   reason”: “failedPrecondition” } ], “status”: “FAILED_PRECONDITION” } }
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-code-400-precondition-check-failed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [csccpud](https://wordpress.org/support/users/csccpud/)
 * (@csccpud)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-code-400-precondition-check-failed/#post-13913121)
 * Jumping in as I’m having the same issue with the failed precondition.
 *  Thread Starter [himanshukhanna](https://wordpress.org/support/users/himanshukhanna/)
 * (@himanshukhanna)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-code-400-precondition-check-failed/#post-13915050)
 * After checking, I did not see any updates pending either
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-code-400-precondition-check-failed/#post-13920763)
 * Hi [@himanshukhanna](https://wordpress.org/support/users/himanshukhanna/), [@csccpud](https://wordpress.org/support/users/csccpud/)
 * Thanks for reaching out. There are several possible reasons for the error “BAD
   REQUEST:: failedPrecondition”. Please check the [steps outlined in this thread](https://wordpress.org/support/topic/400-error-failedprecondition/).
 * I hope that helps!

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

The topic ‘error: code: 400 – Precondition check failed’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/error-code-400-precondition-check-failed/#post-13920763)
 * Status: resolved