github api call works on client