fix ApiError exception message
add connect library steps
check API verion in response headers