Title: Jetpack REST API returns (503) error
Last modified: August 31, 2016

---

# Jetpack REST API returns (503) error

 *  [dylancompanjen](https://wordpress.org/support/users/dylancompanjen/)
 * (@dylancompanjen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/jetpack-rest-api-returns-503-error/)
 * Two days ago I installed the Jetpack plugin on my WordPress site.
    The JSON API
   was working fine until yesterday: { error: “service_unavailable”, message: “The
   Jetpack site is inaccessible or returned an error: transport error – HTTP status
   code was not 200 (503) [-32300]” }
 * I have contacted my hosting company but they advise me to contact you.
    The bug
   can be reproduced by visiting: [https://public-api.wordpress.com/rest/v1.1/sites/www.dylancompanjen.com](https://public-api.wordpress.com/rest/v1.1/sites/www.dylancompanjen.com)
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [10 years, 4 months ago](https://wordpress.org/support/topic/jetpack-rest-api-returns-503-error/#post-7079919)
 * Could you add the following to your site’s wp-config.php file, and then call 
   the API page again?
 *     ```
       define('WP_DEBUG', true);
   
       if ( WP_DEBUG ) {
   
               @error_reporting( E_ALL );
               @ini_set( 'log_errors', true );
               @ini_set( 'log_errors_max_len', '0' );
   
               define( 'WP_DEBUG_LOG', true );
               define('WP_DEBUG_DISPLAY', false);
               define( 'CONCATENATE_SCRIPTS', false );
               define( 'SAVEQUERIES', true );
   
       }
       ```
   
 * Once you’ve done so, check the `wp-content/debug.log` file for errors, and paste
   the results here. You can then replace `define('WP_DEBUG', true);` by `define('
   WP_DEBUG', false);` in the code above.
 * Thanks!
 *  Thread Starter [dylancompanjen](https://wordpress.org/support/users/dylancompanjen/)
 * (@dylancompanjen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/jetpack-rest-api-returns-503-error/#post-7079929)
 * I have just added that lines to my wp-config.php and called the API again. There
   is no debug.log file appearing in my wp-content folder though…
 * Thanks for the reply!
 *  Thread Starter [dylancompanjen](https://wordpress.org/support/users/dylancompanjen/)
 * (@dylancompanjen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/jetpack-rest-api-returns-503-error/#post-7079968)
 * As of this morning it starts to work 50/50 again. Sometimes the API shows me 
   a successful response and sometimes I still get the (503) response.
    What could
   it be, is my web hosting too slow?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [10 years, 4 months ago](https://wordpress.org/support/topic/jetpack-rest-api-returns-503-error/#post-7079986)
 * If you don’t see any errors in debug.log, could you check your server error logs
   around the time when you experienced the issues? The 503 should be listed there,
   and could tell us more about the problem.
 * If you don’t know how to access your server error logs, your hosting provider
   should be able to help.
 * Let me know how it goes.

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

The topic ‘Jetpack REST API returns (503) error’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/jetpack-rest-api-returns-503-error/#post-7079986)
 * Status: not resolved