How can write tag value with blank space(write space)?

hello
i use influxdb with axios lib
i know this is bad way what use blank space.
but i cant avoid it…:cry:

i try escape according to this tutorial
https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_tutorial/#quoting

but it is not working for me but i think it is not bug…
any body help me?
this is my code

const req: any = {
method: “POST”,
url: res.urls[0] + “/write”,
params: {
db: this.datasource,
precision: “ns”,
},
data: bucket,Recipe_Name=CF4_PM1-2_120s_C-N2 0,Module=PM1,LotID=centering SLOT_Num=0,
inspect: { type: ‘influxdb’ },
};

and other way i try this one

const req: any = {
method: “POST”,
url: res.urls[0] + “/write”,
params: {
db: this.datasource,
precision: “ns”,
},
headers: {
‘Content-Type’: ‘application/x-www-form-urlencoded’,
Accept: ‘application/json’,
},
data: q=buc%20ket%2CRecipe_Name%3DCF4_PM1-2_120s_C-N20%2CModule%3DPM1%2CLotID%3Dcentering%20SLOT_Num%3D0%2CSensor%3DAPC_Close_Check%201560818836919
inspect: { type: ‘influxdb’ },
};

Hi @merturl welcome back ,

I don’t see the spaces in your code ,
Have you tried to put a \ before each space ?
Best regards

1 Like

oh… sorry i found my mistake in other code

\ it is perfectly work!

Thank you!! :grinning: