5 messages in com.googlegroups.google-base-data-apiRe: "Captcha required" Error| Subject: | Re: "Captcha required" Error![]() |
|---|---|
| From: | Jeff S (j....@google.com) |
| Date: | 12/10/2007 11:31:08 AM |
| List: | com.googlegroups.google-base-data-api |
On Dec 10, 12:26 am, test <test...@gmail.com> wrote:
Thanks Jeff,
Thanks for the quick response. I'm very sure about my credentials. Could you suggest me what are the possible reasons for which my server may be triggering challenges??
I'm writing below the whole process that I've opted for my application, may be it'll help you to get better solution to my problem. I'm posting my all valid items that are there in my data base. In a gap of two days, I'm running my application through a scheduler. I'm posting items to the google base and in response I'm saving the corresponding Item ids of my posted items in the data base, so that when next time my application run, it 'll update that item based on the item id stored in tha data base and for a new item, again it follow the same process. The whole procedure continues in a loop. For each insertion or updation process I have set the credentials like below
GBaseService service = new GBaseService("PostVehicle" , devKey); service.setUserCredentials(userID,passwd);
i.e. a new service is created each time(either the item has to insert or update) and the credentials are set in the configuration file. So there is no confusion about the credentials. This process is working fine for first 200 odd items, but after this it fall into the "Captcha required" Error. Since there is no user interaction, I cannot visit the URL of the image and send the text as part of the response , that you had suggested in the last post. Also it is an installed application, so I'm not very sure about handling the Url of the image in response.
please advice. thanks
If I understand correctly, you are performing a new client login request each time that you insert an item. This could be the problem, perhaps the client login server issues a CAPTCHA challenge because you are making a large number of login requests (I'm not sure exactly how CAPTCHAs are triggered). Since a client login token is usually valid for a few days, I think you could greatly improve the performance of your application by creating one service object and using it for all of your requests. Setting the credentials once every couple of days should work just fine. If you try this approach, do the challenges disappear?
Thank you,
Jeff
On Dec 7, 11:21 pm, Jeff S <j....@google.com> wrote:
Hi test,
To my knowledge the CAPTCHA challenge is only issued on client login requests and it isn't tied directly to inserting items. Are you sure that your credentials are correct? If they are, then there might be some other reason why your server is triggering challenges. There is a way to respond to these challenges from within your program, but it involves visiting the URL of the image and sending the text as part of the response. Take a look at GAuthRequest and the CaptchaRequiredException.
Happy coding,
Jeff
On Dec 5, 10:57 pm, test <test...@gmail.com> wrote:
Hello all;
I' m using an installed application to post items to google base using Google base C# api. I have arround 6000 odd items. Among these items my application successfully inserting and updating around 200 odd items everytime. But after this it is throwing an exception "Google.GData.Client.CaptchaRequiredException: Captcha required" . I'm facing this same problem everytime. For this I tried to unlock the google base account on the same machine in which my application is hosted, but still the Captcha required exception arrises. Is there any restriction to post large number of items at a time? Please help for this "Captcha required" Error. Can we ignore this error and proceed to insert the next items?
Thanks for suggestion.
thanks- Hide quoted text -




