error if connection to env fails