tempodb / tempodb-node-js

node.js client for TempoDB
14 stars 11 forks source link

Cannot update series with '+' character in key #25

Open Berckyt opened 10 years ago

Berckyt commented 10 years ago

HI, I writed data points with key 'Solar Inverter A+' without an errors, as expected. But if I try to add some attributes to this series via updateSeries method, tempodb return me 400 status code. Why? I can update series 'Solar Inverter A' without a problems.

Thank you.

meshulam commented 10 years ago

It appears that the + character is being interpreted as a space in URLs. Basically when you try to access the series "Solar Inverter A+" it actually attempts to read/update a series "Solar Inverter A " (note the space at the end).

I'll need to look into whether this is a problem in the Node URL encoding or in the URL handling on the server. Thanks for pointing this out.