Add error handling information when no endpoint is configure. Build GVA history query only if pubkey is not empty;