title: InfluxDB reports "unauthorized access" with the generated token
body: <p>I downloaded the latest version of InfluxDB, it's influxdb2-2.0.3_darwin_amd64. I want to write data to the InfluxDB, and followed the documentation of &quot;<a href="https://docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/" rel="nofollow noreferrer">Use InfluxDB API</a>&quot;. I got the &quot;unauthorized access&quot; message.</p>
  <pre><code> curl --request POST &quot;http://localhost:8086/api/v2/write?org=9682c3eaabb5384c&amp;bucket=test_bucket&amp;precision=s&quot; \
   --header &quot;Authorizations: TOKEN _XHOou59351P2Y8JjVDRWNMN22phTUzDVpUJtN85Dby6rfKSjDmGnxWTS_CbjZj-TJn7EaEduDwgtQyOY3BUeg==&quot; \
   --data-raw &quot;mem,host=host1 used_percent=23.43234543 1556896326&quot;
  
  {&quot;code&quot;:&quot;unauthorized&quot;,&quot;message&quot;:&quot;unauthorized access&quot;}
  </code></pre>
  <p>The token was copied from the web UI.
  <a href="https://i.stack.imgur.com/Dv65a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dv65a.png" alt="enter image description here" /></a></p>
  <p>Could anyone help me to solve this authentication problem? Thanks in advance.</p>