I know a developer recently pinged that post to look at a potential regression in a library used by the scanner.
Are you sure your SQ server is accessible from your build agent? If you execute a curl http://myhostUrl:portno/api/server/version from your build pipeline, do you get the expected results?