Can't fetch messages from Subscriber

454 views
Skip to first unread message

Rohit Nigam

unread,
May 26, 2015, 5:10:25 PM5/26/15
to cloud-pubs...@googlegroups.com
Hi 
I am getting this error when fetching  from Subscriber.

INFO: Retrying https://pubsub.googleapis.com/v1beta2/projects/projectId/subscriptions/subscriber_id_sub:pull

com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable

{

  "code" : 503,

  "errors" : [ {

    "domain" : "global",

    "message" : "The service was unable to fulfill your request. Please try again.",

    "reason" : "backendError"

  } ],

  "message" : "The service was unable to fulfill your request. Please try again.",

  "status" : "UNAVAILABLE"

}

at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)

at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)

at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)

at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:312)

at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1049)

at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)

at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)

at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)


I am able to post message to the topic but can't retrieve the message.

Any ideas?


Regards


Rohit

Takashi Matsuo

unread,
May 27, 2015, 2:03:31 PM5/27/15
to Rohit Nigam, cloud-pubs...@googlegroups.com
Hi Rohit,

I have few questions.

Can you tell me the project id, the subscription name, and hopefully the source code so that I can look into it?
Does it always happen, or is it just sporadic?
When did you create the subscription?

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/a2c623c7-4eb1-4e88-9bc1-9f9f10d66e74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Takashi Matsuo | Developers Programs Engineer | tma...@google.com

Rohit Nigam

unread,
May 28, 2015, 7:41:50 PM5/28/15
to cloud-pubs...@googlegroups.com
Hi Takashi
I deleted the topic/subscription and created it again and it started working. Does it have a expiry on them.
Rohit

Takashi Matsuo

unread,
May 28, 2015, 7:54:44 PM5/28/15
to Rohit Nigam, cloud-pubs...@googlegroups.com
Sorry for the terrible experience. I'm pretty certain that your subscription got into a weird state after 30 days of inactive state. It's a known issue and we're fixing this.

-- Takashi


--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Yasir Farooqui

unread,
Jul 16, 2015, 2:41:57 AM7/16/15
to cloud-pubs...@googlegroups.com, tanu...@gmail.com
Hello,

I am also getting this error, but in my case the error code is 504. Also this happens when pushing messages onto a topic. I have a program that continuously publishes messages to a topic and then use push mechanism of the topic to consume. It works for a few hours and then throws Google_Service_Exception with the above error.

Is it still a know issue at your end?

Takashi Matsuo

unread,
Jul 16, 2015, 10:01:42 AM7/16/15
to Yasir Farooqui, cloud-pubs...@googlegroups.com, Rohit Nigam

Hi Yasir,

Topics and subscriptions which have been inactive for over 30 days, are known to get into weird state. This is the original issue on this thread.

However, as far as I read your e-mail, this is not the case. How often you see that error? If it's infrequent, just retry. If it's very frequent, it is not expected, so please send me detailed information like project id, topic and subscription names, time of occurrence, etc.

Thanks,


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages