Error : Invalid Nick

The fault is in the library apparently. not in your code.