Webhook not working > initial state

when trying to enable the webhook towards initial state i keep getting the following error;

{"data":"{\"code\":\"BadRequestError\",\"message\":\"Request doesn't contain events\"}","ttl":"60","published_at":"2016-05-17T15:52:02.046Z","coreid":"xxxxx","name":"hook-response/pool-pressure/0"}

following this guide:

triggering with this publish

int led = D0;
// pressure sensor is connected to vin/gnd/A0

void setup() {
  // initialize serial communications at 9600 bps:
  pinMode(led, OUTPUT);

void loop() {

float sensorVoltage = analogRead(0);   // read the sensor voltage
int psi = ((sensorVoltage-95)/204)*50-128;  //run the math to correct for voltage issues
String data = String(psi);

Serial.println (sensorVoltage);

delay (10000);
 Particle.publish("pool-pressure", String(psi));
 Particle.publish("pool-pressure", data, PRIVATE);
  digitalWrite(led, HIGH);
  digitalWrite(led, LOW);


Have you got it fixed?

nope, i will try again in the next few days

I got it running using CLI.

can you share your code ?

Basically you create a json file or download it from https://github.com/InitialState/particle-electron-gps-streamer/blob/master/stream.json

Then use CLI to create that newly created webhook:

particle create webhook stream.json

It’s just the same thing you do in online interface, but for some reason it just doesn’t work (with Initial State).