@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 5 years, 4 months ago by
bsteinlo.
@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?