samuelmr / nordpool-node

A npm library to get information from nordic power market (Nord Pool, ELSPOT)
MIT License
56 stars 13 forks source link

Invalid params #2

Closed jensjakob closed 7 years ago

jensjakob commented 7 years ago

Hi. Any idea why I'm keep getting this error?

{ status: '-2001', message: 'INVALID PARAMS' }

I've got it before, but just once. Now it's every time I try.

https://github.com/jensjakob/charge-cheap/issues/17

samuelmr commented 7 years ago

Based on the charge-cheap issue it seems that your json.vehicleInfo is undefined. Have you made sure your JSON is valid and can be parsed?

Very likely unrelated to nordpool-node.

jensjakob commented 7 years ago

The problem was that my userid became "root" when I ran the script with sudo.