The same C# code that works for inserting into local server works but not for actual server.
I think it has to do with credentials?
using (System.Net.WebClient client = new WebClient())
{
//test
client.Credentials = new NetworkCredential("username", "pw");
client.UploadString(new Uri($"{Settings.influxDBServer}/write?db={Settings.influxDatabaseName}"), sb.ToString());
}
In local server username/pw isn't required. For enterprise it is. So I added the client.Credentials = new NetworkCredential("username", "pw");
line. I looked here and tried the answer by jitbit but I still get error 400.