compare to basestr and not str
Posting events was missing the authorization headers