"error": "partial write: unable to parse 'yla1,host=server01,region=us-west httpsRequests=100i\r': invalid number\nunable to parse

#1

I am using postman tool to insert multiple data to influxdb and I am getting the following error,

Method : POST
Data Seeding :
yla1,host=server01,region=us-west httpsRequests=100i
yla1,host=server01,region=us-west bodySize=7528i
yla1,host=server01,region=us-west contentLength=7528i
yla1,host=server01,region=us-west httpTrafficCompleted=754i
yla1,host=server01,region=us-west timeToFirstByte=752i
yla1,host=server01,region=us-west timeToLastByte=755i
yla1,host=server01,region=us-west htmlCount=1i

Output:
{
“error”: “partial write: unable to parse ‘yla1,host=server01,region=us-west httpsRequests=100i\r’: invalid number\nunable to parse ‘yla1,host=server01,region=us-west bodySize=7528i\r’: invalid number\nunable to parse ‘yla1,host=server01,region=us-west contentLength=7528i\r’: invalid number\nunable to parse ‘yla1,host=server01,region=us-west httpTrafficCompleted=754i\r’: invalid number\nunable to parse ‘yla1,host=server01,region=us-west timeToFirstByte=752i\r’: invalid number\nunable to parse ‘yla1,host=server01,region=us-west timeToLastByte=755i\r’: invalid number dropped=0”
}

^any thought on this

#2

It looks like the data has DOS line endings, try converting to unix line endings.

#3

Thank You Daniel. it worked now. Can you please tell me if I need to send it from the Jmeter https request then how can I dot it ?

#4

Sorry, I’m not sure, have never used JMeter. I think it should be possible but you may need to ask the JMeter project if you can’t find it in their documentation.