Hi Roberto,
Thanks for your message. I don’t think I fully understand the issue you were having, but it sounds like you had an issue with the API calls failing for some particular reason.
If the API calls are working they generally always work. GoToWebinar’s servers seem to be very reliable. With caching enabled in the plugin settings, which I absolutely recommend, webinars should be output to users reliably because it’s calling upon cached data and only 200 status API calls are cached. So once the plugin is up and running, it’s generally always up and running.
Throughout the plugin I do show some error messages. I am not sure if you are suggesting a change to the plugin functionality though. If you are could you please let me know on a high level what the problem was and what you need from the plugin to resolve it.
Thanks,
Hi,
this is the actual error that showed up out of a sudden:
“cURL error 6: Could not resolve host: api.getgo.com”
To find out, we had to do some deeper inspection of the return value of the wp_remote_get() call. This is how we retrieved the above error message.
if (is_wp_error($json_feed)) {
error_log($json_feed->get_error_message());
}
What I am suggesting, is to provide more thorough error messages where possible, to ease debugging. There’s no actual/open issue with the plugin not working for us at this moment.
Another thing that would have been nice: The cache was invalidated after 24 hours, but retrieving new data failed. From that moment on the website user is seeing an error message; seeing the old data instead would have been a better user experience.
Roberto
Hi Roberto, thanks for the feedback. I will keep this in mind for future updates. Thanks!