Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7161953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:39:17+00:00 2026-05-28T13:39:17+00:00

I’m working on a server side solution for a mobile application written in Ruby.

  • 0

I’m working on a server side solution for a mobile application written in Ruby. Part of our requirements is to notify our distributed clients to phone home to receive updated payload which Google’s C2DM service seems ideal for.

I’ve already prototyped and tested everything we need and verified that the solution will work from my local machine. (Using the C2DM library for Ruby, the link is to my own fork in progress to solve an SSL certificate problem where the cert doesn’t cover Google’s api subdomain.) Except for one major hiccup in Google’s ClientLogin API:

When deploying to our development application servers I was unable to transmit messages. Digging deeper into the results I found out that we were receiving a reply from Google that said CAPTCHAREQUIRED and a captcha token plus a URL to a captcha image despite the fact I was using a valid auth_token I created locally during development. So I used my own browser to request the CAPTCHA and solve it, then used curl to post the reply from our development server to ClientLogin after which I was able to get the auth_token necessary to transmit messages.

This had me worried that when deploying to a production environment a similar authentication challenge will occur. So a teammate and I performed some more research and found out that while no one knows the exact specifications as to when an auth_token may expire there is at least one purported Google engineer who claimed they are valid for “at least two weeks.” Then a suggested solution is that when the ClientLogin response indicates CAPTCHAREQUIRED that you page/email an ops/devops person to solve the CAPTCHA and use a page/tool in your server application to submit the answer to get a new auth_token. (If this is what I have to do, I guess Amazon’s Mechanical Turk saves the day?)

There is, of course, the real possibility that this information is outdated but that doesn’t change the fact that I still need to solve CAPTCHAs at least during initial installation. We control the production environment so this isn’t a very big deal, just a minor inconvenience since we don’t know what, exactly, causes a CAPTCHAREQUIRED challenge response. (We theorize that its a previously unknown IP address for the account.)

I can’t help but thinking I’m doing something terribly, terribly wrong here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:39:18+00:00Added an answer on May 28, 2026 at 1:39 pm

    The question of auth token lifetime is still very much in the air. C2DM is officially still a beta, so the Google people don’t want to commit to a solid figure. Understandable, but frustrating.

    That said, in my experience, if you use a dedicated Google account for C2DM purposes, the CAPTCHA challenge never comes up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.