Title: Intermittent 502 errors
Last modified: November 2, 2017

---

# Intermittent 502 errors

 *  [bsteinlo](https://wordpress.org/support/users/bsteinlo/)
 * (@bsteinlo)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/intermittent-502-errors/)
 * Upgraded to 4.8.3 and have been getting a ton of 502 errors. There is nothing
   in my php or nginx logs. This only happens on my job board and not other pages
   of site so has to do with the greenhouse plugin only. Any thoughts or ideas?

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

 *  Plugin Author [brownbagmarketing](https://wordpress.org/support/users/brownbagmarketing/)
 * (@brownbagmarketing)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/intermittent-502-errors/#post-9656707)
 * [@bsteinlo](https://wordpress.org/support/users/bsteinlo/) – We’ve done some 
   extra testing on our end with 4.8.3 but don’t see any differences or errors. 
   Are you still seeing this? I wonder if the greenhouse api has had any outages
   lately, though I don’t see any reported: [http://status.greenhouse.io/](http://status.greenhouse.io/)
   that would have this effect.
 *  Thread Starter [bsteinlo](https://wordpress.org/support/users/bsteinlo/)
 * (@bsteinlo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/intermittent-502-errors/#post-9656936)
 * Hey [@brownbagmarketing](https://wordpress.org/support/users/brownbagmarketing/),
   thanks for letting me know. I am wondering if it’s the greenhouse API as well.
   Am wondering if there’s a possibility of adding better error handling so any 
   bad response (like 500 errors) display a message letting users know the board
   is down. Thoughts?
 *  Thread Starter [bsteinlo](https://wordpress.org/support/users/bsteinlo/)
 * (@bsteinlo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/intermittent-502-errors/#post-9657266)
 * Not sure if this would handle the errors, but what about something like
 *     ```
       $response = wp_remote_get('https://api.greenhouse.io/v1/boards/' . $atts['url_token'] . '/embed/jobs?content=true');
   
       	// Check for error
       	if ( is_wp_error( $response ) ) {
       		//do something
       		return;
       	}
   
       $ghjb_json = wp_remote_retrieve_body( $response );
   
             	// Check for error
       	if ( is_wp_error( $ghjb_json ) ) {
       		//do something
       		return;
       	}
       ```
   
    -  This reply was modified 8 years, 6 months ago by [bsteinlo](https://wordpress.org/support/users/bsteinlo/).
 *  Thread Starter [bsteinlo](https://wordpress.org/support/users/bsteinlo/)
 * (@bsteinlo)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/intermittent-502-errors/#post-9738501)
 * [@brownbagmarketing](https://wordpress.org/support/users/brownbagmarketing/) 
   any additional thoughts on this, I keep getting 502 errors. Not seeing anything
   from Greenhouse API but something is funky is going on and causin this. Let me
   know if you think above error handling might work?

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

The topic ‘Intermittent 502 errors’ is closed to new replies.

 * ![](https://ps.w.org/greenhouse-job-board/assets/icon-256x256.png?rev=1121605)
 * [Greenhouse Job Board](https://wordpress.org/plugins/greenhouse-job-board/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/greenhouse-job-board/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/greenhouse-job-board/)
 * [Active Topics](https://wordpress.org/support/plugin/greenhouse-job-board/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/greenhouse-job-board/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/greenhouse-job-board/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bsteinlo](https://wordpress.org/support/users/bsteinlo/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/intermittent-502-errors/#post-9738501)
 * Status: not resolved