Hi,
My current setup is Influx 0.13 (Dan’t blame me, pretty old) and Ubuntu 16.04.
I’m experiencing a silly issue. When POSTing data through the HTTP API, I get a 204 but actually no data is inserted. A SELECT query returns an empty set.
However, when using the influx CLI for inserting the very same data, it works properly. I basically do a tcpdump to capture the data sent by my connector (Influxdb-java) and paste it into influx with a leading INSERT.
POST /write?u=root&p=root&db=mydb&rp=default&precision=n&consistency=one
myserie,customer=22222222,aaa=00000000000002,version=2 bbb=0i,bbb=0i,ddd=0i,eee=240i,fff=120i,ggg=360i,hhh=2812i,iii=52i,jjj=105i,kkk=140i,lll=9i,mmm=6i,nnn=42i,ooo=0i,ppp=71i,qqq=0i,rrr=3237i,sss=10i,ttt=5i,uuu=15i,vvv=0i,www=0i,xxx=10i,yyy=0i,zzz=10i,a2=5i,b2=15i,c2=" NO DATA ",d2=7200i,e2=3600i,e3=10800i,e4=6i,e5=0i,e6=0i,e7=0i,e8=6i,e9=0i,e10=3i,e11="Morning ",e12="test 2 ",e13=1489050907448i,e14=138i,e15=" A0800",e16=230i,e17=0i,e18=0i 1489050906000000000
Converted to :
INSERT myserie,customer=22222222,aaa=00000000000002,version=2 bbb=0i,bbb=0i,ddd=0i,eee=240i,fff=120i,ggg=360i,hhh=2812i,iii=52i,jjj=105i,kkk=140i,lll=9i,mmm=6i,nnn=42i,ooo=0i,ppp=71i,qqq=0i,rrr=3237i,sss=10i,ttt=5i,uuu=15i,vvv=0i,www=0i,xxx=10i,yyy=0i,zzz=10i,a2=5i,b2=15i,c2=" NO DATA ",d2=7200i,e2=3600i,e3=10800i,e4=6i,e5=0i,e6=0i,e7=0i,e8=6i,e9=0i,e10=3i,e11="Morning ",e12="test 2 ",e13=1489050907448i,e14=138i,e15=" A0800",e16=230i,e17=0i,e18=0i 1489050906000000000
I’ve just seen that there is a logged issue in Github (Got a 204 response when writing data using HTTP/1.0, but no data is written · Issue #8049 · influxdata/influxdb · GitHub) but this seems a very old issue and it sounds weird to me than so few people experienced it.
Any ideas ?