Support » Plugin: Greenhouse Job Board » 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

    (@brownbagmarketing)

    @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/ that would have this effect.

    Hey @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?

    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 2 years, 11 months ago by .

    @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.