Wrangler connection error

After installing wranger on my mac and authorising with cloudflare which I get Successfully configured I then type ‘warngler whoami’ and get the following error.
Error: error decoding response body: missing field betas at line 1 column 483
What is causing this?

Same error.

I get this when using wrangler version 1.12.2 and 1.16.1. Problem occurs every time I run wrangler whoami, even after a second successful wrangler login.

% wrangler whoami
Error: :warning: Error: error decoding response body: missing field betas at line 1 column 492

Not sure why they insist on Wrangler. I simple used my own local text editor and then copy and pasted the code into the worker.

My next gripe is that I ran out of worker allowance within 12 hours and had to pay extra. When certain basic tasks are not standard and you require to code an xextra wrker to make it work to only get charged more is not a great feeling.