using gb_getlasterror to debug gb_ping issue