[SOLVED] Issue posting data on a fresh install

Hello everyone,

I've just made a fresh install of emoncms on a vps following the git installation procedure. Everything went fine, I see through phpmyadmin that the emoncms db has been filled, I can create new users and successfully login.

The problem is that when I try to post data using one of the options in the "Input Api Help" page (for example "http://servername/emoncms/input/post.json?json={power:200}") a new input is created every time I click that link. If I repeat the post 5 times then I have 5 identical inputs named "power".

I never had such a problem using emoncms (I've been hosting it since version 6) and I really cannot figure out where the problem could be.

Can anyone please give me an advice in order to solve or to investigate this issue?

Thanks in advance.

Federico.

pb66's picture

Re: [SOLVED] Issue posting data on a fresh install

There has been a recent change in emoncms which has resulted in this behaviour you are seeing if there is no node id set, which is true of your example. try

"http://servername/emoncms/input/post.json?node=10&json={power:200}"

I would also avoid using node id "0" which is probably the nearest way of replicating the previous "null" node behaviour and use a number in the range 1 to 30.

Paul

efidi13's picture

Re: [SOLVED] Issue posting data on a fresh install

Thank you very much Paul. That solved my problem.

Best regards,

Federico.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.