Getting started with InfluxDB / Docker - 401 (Unauthorized)

Hi @jnewcomb, it looks like the C# libraries are still targeting the V1 APIs. InfluxDB 2.x includes compatibility APIs to handle those requests, but they require some extra up-front setup. We have some doc additions in the works (any suggestions would be appreciated), but in the meantime you’ll need to:

  1. Create a V1 compatibility auth token to use from your client library. You can do this using the influx v1 auth create command (reference docs here). The username/password you set with the command is what you should use to configure your client. Make sure to set --read-bucket and/or --write-bucket to enable interacting with your target bucket.
  2. Create a DBRP mapping for your target bucket. You can do this using the influx v1 dbrp create command (reference docs here). You can set anything you want for the --db and --rp arguments, and those are the values you’ll need to use when configuring your client. --bucket-id should point at your target bucket.

Please let me know if you’re still hitting issues after following those steps.