Macbook can not add host to server

when i add a host to rancher server the agent show error as follow:
File “/usr/local/lib/python2.7/dist-packages/requests/”, line 381, in prepare_url
raise InvalidURL(‘URL has an invalid label.’)
requests.exceptions.InvalidURL: URL has an invalid label.

i think the rancher server in mac have a bug like this:
the CATTLE_URL is not correct.

export CATTLE_REGISTRATION_ACCESS_KEY="registrationToken"
export CATTLE_REGISTRATION_SECRET_KEY="D8862A4CB58836C78460:1484326800000:NgSnGrW9cTW6HWQvxjUod81fxVU"
export CATTLE_URL="锛�8080/v1"

so everybody do you have any solution for rancher right run on the macbook?
how can config it?
my rancher’s version is 1.3.1 and docker’s version is 1.12.6 for macoX

The registration URL contains some sort of unicode character that isn’t a colon (:) between the host and port.

Separately, you haven’t gotten far enough to hit problems yet but Rancher does not work well with Docker for Mac (d4m). D4m creates a Linux VM on your Mac and then employs a variety of tricks to make it appear that Docker is actually running locally on your Mac, but these do not fit well with the way networking works in CNI/Rancher.

We suggest regular VMs of some sort for trying Rancher; this is the script I use:

Thank you very much for your reply. i was update my rancher to the latest
.The bug was fixed. So i can add my macbook host to rancher.