No hook-sent or hook-response events?

I’m trying to use a web hook with thingspeak.com. I can see the event being published (“volton2”). The data is arriving at thingspeak, showing up in a channel, but I am not getting a hook-sent or hook-response event showing up in the console.

Of course this happened when I was demoing it with students (who couldn’t get it to work either).

Any ideas why this would be the case?

Hi @mprogers,

That’s pretty strange? I would double check that you’re subscribing to hook-sent events on the same account / product / etc as the webhook is setup? However the webhook system won’t send hook-response events unless the destination server returns a non-empty response (like “ok”, or something).

I’m not sure if anything changed that might impact this, but I know some work was being done today on our webhook system. I’ll ping @jvanier in case he has more information on if any work might have impacted this.

Thanks,
David

1 Like

Thanks, David, I appreciate any help that I can get. I tried just now switching to a test of openweatherapi.org, and again, I’m seeing just the event.

Do I have to subscribe to the event to see hook-sent and hook-response it in the console? I thought that if I sent an event to a web hook, that was enough …

I had a class of 15 students, and I don’t believe anybody was able to see a hook-send or hook-response, so maybe this affected more than just me? Although I assume if it was a wide-spread problem, the forums would be filled with anguished cries for help, not just mine.

1 Like

Can you provide more information on how you were sending events and how you set up the webhook? We don’t have a widespread problem with webhooks right now.

2 Likes

Hi @mprogers,

Hmm, you shouldn’t need to subscribe to those events for them to show up. If you’re doing product hooks and not just normal user hooks, it’s possible you set the response to be sent to the devices directly and not the general product feed?

Thanks,
David

1 Like

Hi, Jvanier:

I used POST, the web hook builder: (I changed the URL so I could see what the request is getting … and requestb.in is getting the right data:

event=volon2&data=test-event&published_at=2017-10-03T22%3A33%3A43.220Z&coreid=api&field1=test-event&api_key=NNNNNNN

Here is the web hook:

Finally, the data is straightforward as well (obviously just for testing purposes):

void loop() {
volts = rand() % 100;
Particle.publish(“volon2”, String(volts), PRIVATE);
digitalWrite(D7,HIGH);
delay(15000);
digitalWrite(D7,LOW);
delay(15000);
}

OK, I didn’t think I had to do much to get the hook-sent and hook-response to show up. I’m not working with product hooks (at least AFAICT).

I don’t believe that I’ve seen that checkbox … where does that appear?

Thanks for helping me debug this, I am grateful (desperate, but grateful😀)

Hi @mprogers,

So that particular checkbox only shows up for product webhooks, so you’re probably good. That’s a really weird issue, I would have to guess it must have been related to the work being done earlier today. Are you still seeing this issue?

Thanks,
David

1 Like

Yes, I’m still just seeing the original event being posted.

I went and created a new integration, rather boringly called voltage, and when I test it, I get a message that my integration is behaving as expected.

Should I create a new account on Particle? Or is there anything else that I can do, on my end, to fix this?

Sorry to be such a pain, but webhooks are sort of important, as you can imagine.

Just to update my saga somewhat, Rick from technical support has been in contact, which I take to be a Good Sign :slight_smile:

The final word … and while I don’t generally like to publicly acknowledge that I’m an idiot, if this helps anyone else in a similar situation, I’m willing to take the hit to my ego.

There are two ways to view events in the console – either by a) selecting My Devices and clicking on a device, or b) by choosing Events. When I chose a), all I saw was the originating event; when I chose b), I’d see the originating event, but after a while, the hook-sent and hook-response events as well.

in a), the hook-sent and hook-responses are attributed to a “particle internal” device, not the device I am currently using, so it makes sense that on the My Devices events page I wouldn’t see them.

But the two pages are somewhat similar, and the distinction between them was lost on me.

Thanks, everyone, for their willingness to help, I really do appreciate it!

2 Likes