Real-Time issues

45 views
Skip to first unread message

bdavis

unread,
Dec 12, 2011, 8:11:42 PM12/12/11
to etsy-...@googlegroups.com
I am subscribing to the real-time firehose through pubsubhubbub. Everything is working fine but it doesn't look like I am getting any results in the body of the POST. 
this is what I am subscribing with...

curl -d "hub.mode=subscribe&hub.verify=sync&hub.callback=http%3A%2F%2Forion.herokuapp.com%2Fpush%2Ffirehose&hub.topic=http%3A%2F%2Fwww.etsy.com%2Fapi%2Fpush%2Flistings%2Flatest.atom" -vX POST "http://hub.etsy.com/?api_key=x181upgy763lga6i8a4y26oc"

I am really only interested in individual feeds, but I want to test out getting data through the pubsubhubbub. 

Am I doing something wrong? And is their a better way to test this(real-time sandbox)?

Justin Kerr Sheckler

unread,
Dec 13, 2011, 11:31:06 AM12/13/11
to etsy-...@googlegroups.com
Hi Brad,

Are you definitely seeing POST requests in your access logs, or is your callback not getting any traffic at all?  I will check with Superfeedr.

PS: The "api_key" param should probably be sent in your POST body, (although I don't think that's what's causing this issue.)

best,
Justin Kerr Sheckler
Developer API Lead
Etsy.com
jus...@etsy.com



--
You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
To view this discussion on the web visit https://groups.google.com/d/msg/etsy-api-v2/-/NjxilJmHLN8J.
To post to this group, send email to etsy-...@googlegroups.com.
To unsubscribe from this group, send email to etsy-api-v2...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/etsy-api-v2?hl=en.

SnakeO

unread,
Dec 13, 2011, 11:40:52 AM12/13/11
to Etsy API V2
Your callback URL seems to not exist:
http://orion.herokuapp.com/push/firehose

bdavis

unread,
Dec 14, 2011, 2:33:20 PM12/14/11
to etsy-...@googlegroups.com
I'm going to move all the real-time stuff to a new server so I can work on it separately. Hopefully, I can lock down the problem a little better. 

I was at one point definitely getting POST requests without the body showing up to my app. When I tried it later that day, I would subscribe to the firehose, and not get any POST's. I will try it all again and keep better logs of whats going on. 

Justin Kerr Sheckler

unread,
Dec 15, 2011, 11:00:26 AM12/15/11
to etsy-...@googlegroups.com
Hi Brad,

1. There seem to have been some brief outages in our PuSH feed recently-- Superfeedr is looking into the problem.

2. How are you parsing the POSTs?  The payload is posted as plain XML, so languages like PHP that parse the POST data automatically won't know what to do with it.  You need to look at the raw POST data to process the XML.  In PHP, you can use this code:

file_get_contents('php://input');

Other languages will probably require reading STDIN.

best,

Justin Kerr Sheckler
Developer API Lead
Etsy.com
jus...@etsy.com



On Wed, Dec 14, 2011 at 2:33 PM, bdavis <brad.b...@gmail.com> wrote:
I'm going to move all the real-time stuff to a new server so I can work on it separately. Hopefully, I can lock down the problem a little better. 

I was at one point definitely getting POST requests without the body showing up to my app. When I tried it later that day, I would subscribe to the firehose, and not get any POST's. I will try it all again and keep better logs of whats going on. 

--
You received this message because you are subscribed to the Google Groups "Etsy API V2" group.
To view this discussion on the web visit https://groups.google.com/d/msg/etsy-api-v2/-/uFq5JmUeauMJ.
Reply all
Reply to author
Forward
0 new messages