http://pubsubhubbub.appspot.com does not return updated data to callback

97 views
Skip to first unread message

muhammed şahsuvaroğlu

unread,
Jan 26, 2012, 2:23:18 AM1/26/12
to Pubsubhubbub, m_sah...@yahoo.com
I am developing pshb I subscribed using below data and I got 204
response from google think iti s ok
my callbackUrl is inside a network ,i put external ip of my network
was got from whatismyip.com


{
"hub":"http://pubsubhubbub.appspot.com/subscribe",
"hubTopic":"http://friendfeed.com/?
auth=56kHFS0AMm9Fjj8f&format=atom",
"callbackUrl":"http://78....:80/Pubsubhubbub/callback"
}

I have callback function implemented on java restful service like

@POST
@Path("/callback")
@Consumes({MediaType.APPLICATION_ATOM_XML})
@Produces("text/html")
public Response callbackpost(InputStream is) throws
UnsupportedEncodingException, IOException {
Writer writer = new StringWriter();
System.out.println("!!!!!!"+is.toString());

// if (is != null) {


char[] buffer = new char[1024];
try {
Reader reader = new BufferedReader(
new InputStreamReader(is, "UTF-8"));
int n;
while ((n = reader.read(buffer)) != -1) {
writer.write(buffer, 0, n);
}
} finally {
is.close();
// }
System.out.println("!!!!!"+ writer.toString());
}
ResponseBuilder builder=Response.ok();

return builder.build();
}

When I updated myspace blog page, I wrote a feed but it doesn't come
into my service. Why?
what is the problem ,is it realted with ip?i have no clue related this
problem
i am looking forward to see your reply
thank you for your help

Charl van Niekerk

unread,
Jan 29, 2012, 2:05:48 PM1/29/12
to Pubsubhubbub
On 26 jan, 08:23, muhammed şahsuvaroğlu <m.sahsuvaro...@gmail.com>
wrote:
> my callbackUrl is inside a network ,i put external ip of my network
> was got from whatismyip.com

This might sound like an obvious question, but you didn't specify...
Did you configure port forwarding etc to work correctly? Can any other
host from outside your network connect to your HTTP server? You could
perhaps try a service like this one to test that:

http://www.downforeveryoneorjustme.com/

muhammed şahsuvaroğlu

unread,
Jan 30, 2012, 2:49:34 AM1/30/12
to Pubsubhubbub
Hello Thank you for your reply
ı tested my service inside a domain
i put pubsubhubbub server inside www.socialagent.im domain
worked ,is there any Pubsubhubbub supported socialnetwork to test
i cant find ,and for callback callbackpost(InputStream is) this
signature is right?
when i subscribed a topic i took 204 response is right i mean..
which google appspot supported soial network i can use to test?
please let me know
thank you
Reply all
Reply to author
Forward
0 new messages