सदस्य वार्ता:Bolbalabot

पृष्ठ की सामग्री दूसरी भाषाओं में उपलब्ध नहीं है।
मुक्त ज्ञानकोश विकिपीडिया से

यह पृष्ठ सदस्य Bolbalabot का वार्ता पन्ना है, जहाँ आप Bolbalabot को संदेश भेज सकते हैं और इनसे चर्चा कर सकते हैं।

Here's the problem. I have spent four days on it now and I am at my wits' end. The bot is able to login and visit pages, but on trying to edit, this message appears: माफ किजीयें! आपके बदलाव सेशन डाटा के नष्ट होने के कारण संजोयें नहीं गयें हैं। कृपया पुन: यत्न करें। अगर इसके बाद भी ऐसा ही होता हैं तो कॄपया लॉग आउट करके फिरसे लॉग इन करें।, which corresponds to the enwiki message: Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Apparently this is some problem with storing and/or passing session data.This is what I have discovered so far:

  1. The session ID is passed in key hiwiki_session in the header of the first page that the bot visits (in this case the login page). A new session ID is given for every new instantiation of the useragent object (can't reuse old session IDs).
  2. The cookie_jar object is supposed to automatically extract and store cookies after each request. It works great with login cookies (hiwikiToken, hiwikiUserID and hiwikiUserName); however, it does not seem to store the hiwiki_session cookie. It probably has something to do with the hiwiki_session cookie not having an 'expires' key. (This from documentation of perl's HTTP::Cookies module: "The $maxage value is a number indicating number of seconds that this cookie will live. A value <= 0 will delete this cookie.")
  3. It is of no use opening the cookie file and adding the session key after obtaining it from the login page. The file storing the cookies seems to be locked by the useragent: It does not complain on opening in write mode, or using print to write to it, but nothing actually gets written to the file. Also, while exiting perl, the useragent stores the current state of its cookie_jar object into that file, overwriting everything else.
  4. So I try this: Let the useragent associate its cookie_jar with mediawikihindi-cookies.txt; store the session cookie in another file called mediawikihindi-sessioncookies.txt. When comes time to post my edit on the edit page, force the useragent to load cookies from mediawikihindi-sessioncookies.txt file as well. Now I finally have uptodate session cookies in this new file, but I am still getting this error.

The source of the bot is here:सदस्य:Bolbalabot/सोर्स; and the source of the modified MediaWiki module is here: सदस्य:Bolbalabot/सोर्स/MediaWikiHindi. Any help or ideas will be appreciated. -- दाढ़ीकेश २२:५८, १७ जुलाई २००८ (UTC)

प्रिय Bolbalabot, हिन्दी विकिपीडिया पर आपका स्वागत है!

निर्वाचित सूची उम्मीदवार का सिम्बल
निर्वाचित सूची उम्मीदवार का सिम्बल

विकिपीडिया एक मुक्त ज्ञानकोष है जो विश्वभर के योगदानकर्ताओं द्वारा लिखा जा रहा है।
कुछ भी लिखने से पहले कृपया सहायता के निम्नांकित पृष्ठों को ध्यान से पढ़ें:

किसी भी वार्ता/संवाद पृष्ठ, चौपाल या अन्य कहीं भी जहां सदस्यों के मध्य वार्ता होती है, पर अपना सन्देश छोड़ने के बाद अपना हस्ताक्षर अवश्य छोड़े। इसके लिए अपने सन्देश की समाप्ति पर --~~~~ लिख दें।

हम आशा करते है कि आपको विकिपीडिया से जुड़ने में आनन्द आएगा।

-- ePanditBot  Talk  १९:१२, २ सितंबर २०१० (UTC)