#78 Cannot save pages

closed-fixed
nobody
None
2010-11-04
2010-10-03
PChott
No

I'm getting error while trying to save pages. Mediawiki is 1.16.0 and DotNetWikiBot from CVS! Any suggestion what could be the problem

-------------OUTPUT -------------
PageList filled with bot account's watchlist.

Unhandled Exception: System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where) at System.Net.WebConnection.ReadDone(IAsyncResult result) at System.Net.Sockets.Socket+SocketAsyncResult.Complete() at System.Net.Sockets.Socket+Worker.Receive() at System.Net.WebConnection.HandleError (WebExceptionStatus st, System.Exception e, System.String where) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename unknown>:0 at DotNetWikiBot.Site.PostDataAndGetResultHTM (System.String pageURL, System.String postData) [0x0011b] in /myBot/cvs_dll/framework/DotNetWikiBot.cs:963

Discussion

  • CodeDriller

    CodeDriller - 2010-10-05

    Can't reproduce this.

    Was that a temporary problem or does the problem persist?

     
  • PChott

    PChott - 2010-10-05

    Still same :S

    Now i was testing around. Seem's to me that works in window but i use mono on linux. Do you use some windows specific?

     
  • CodeDriller

    CodeDriller - 2010-10-06

    No, DotNetWikiBot is so-called "100% .NET application", it doesn't use P/Invoke or any other platform-specific methods.

     
  • CodeDriller

    CodeDriller - 2010-10-07

    I've got a temporary solution for now, in case you need it urgently, but not fully tested yet. Correct the DotNetWikiBot.cs code near line 950 so it would look like:

    ...
    webReq.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
    if (!string.IsNullOrEmpty(postData)) {
    webReq.AllowAutoRedirect = false;
    webReq.Method = "POST";
    ...

    There seems to be some critical undocumented difference between .NET's and Mono's web connection handling. Or it is a bug. I'll try to investigate it.

    Please, keep me informed if you find something.

     
  • CodeDriller

    CodeDriller - 2010-10-07
    • status: open --> open-accepted
     
  • PChott

    PChott - 2010-10-07

    Thx for research

     
  • CodeDriller

    CodeDriller - 2010-11-04
    • status: open-accepted --> closed-fixed
     
  • CodeDriller

    CodeDriller - 2010-11-04

    Bug evasion was added in version 2.96.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks