Menu

#736 Error encountered in function parseBidHistory in history.c line 182

v1.0 (example)
closed-fixed
nobody
None
5
2018-06-19
2017-10-12
No

esniper encountered a bug. Please go to:
http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
paste this into "Detailed Description":
Automated esniper bug report.
esniper version 2.33.0
libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Error encountered in function parseBidHistory in history.c line 182
auction = 152733715292, price = 211.11, remain = 0
latency = 0, result = -1, error = 0
buf = 0x532f840, size = 46281, read = 0x532f840
time = 1507838492, offset = 0
pagename = "Bid history", pageid = "(null)", srcid = "(null)"
specified options or config values:
1 x username(u) =
1 x password() =

1 x seconds(s) = 10
1 x quantity(q) = 1
1 x (c) = "esniper/config"
1 x reduce() = 1
1 x bid() = 1
1 x debug(d) = 0
1 x batch(b) = 0
1 x logdir(l) = "/home/valerio/esniper/logs"
no item number
then upload and attach esniper.7252.1.bug.html and click submit.
Auction 152733715292: Unknown item
Retrying...
esniper encountered a bug. Please go to:
http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
paste this into "Detailed Description":
Automated esniper bug report.
esniper version 2.33.0
libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Error encountered in function parseBidHistory in history.c line 182
auction = 152733715292, price = 211.11, remain = 0
latency = 0, result = -1, error = 0
buf = 0x532f840, size = 46281, read = 0x532f840
time = 1507838495, offset = 0
pagename = "Bid history", pageid = "(null)", srcid = "(null)"
specified options or config values:
1 x username(u) =
1 x password() =

1 x seconds(s) = 10
1 x quantity(q) = 1
1 x (c) = "esniper/config"
1 x reduce() = 1
1 x bid() = 1
1 x debug(d) = 0
1 x batch(b) = 0
1 x logdir(l) = "/home/valerio/esniper/logs"
no item number
then upload and attach esniper.7252.2.bug.html and click submit.
Auction 152733715292: Unknown item
Retrying...
esniper encountered a bug. Please go to:
http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
paste this into "Detailed Description":
Automated esniper bug report.
esniper version 2.33.0
libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Error encountered in function parseBidHistory in history.c line 182
auction = 152733715292, price = 211.11, remain = 0
latency = 0, result = -1, error = 0
buf = 0x532f840, size = 46281, read = 0x532f840
time = 1507838498, offset = 0
pagename = "Bid history", pageid = "(null)", srcid = "(null)"
specified options or config values:
1 x username(u) =
1 x password() =

1 x seconds(s) = 10
1 x quantity(q) = 1
1 x (c) = "esniper/config"
1 x reduce() = 1
1 x bid() = 1
1 x debug(d) = 0
1 x batch(b) = 0
1 x logdir(l) = "/home/valerio/esniper/logs"
no item number
then upload and attach esniper.7252.3.bug.html and click submit.
Auction 152733715292: Unknown item

Auction 152733715292: Unknown item

1 Attachments

Related

Bugs: #736

Discussion

1 2 > >> (Page 1 of 2)
  • Source Geek

    Source Geek - 2017-10-17

    eBay changed the page. This patch fixes history.c. There may be more that has changed. This patch is a starting point. This patch is based on the CVS repository.

    It looks like there is old code that should be removed in history.c. This patch does not address that issue.

     
    • ABK

      ABK - 2017-10-23

      The old history.c is 26 KB, the new one is 3 KB. Is this by design?

       
      • Michael S.

        Michael S. - 2017-10-23

        The new history.c is also about 26 kb (http://esniper.cvs.sourceforge.net/viewvc/esniper/esniper/history.c?r1=1.33&r2=1.34&sortby=date) large. The history.c.patch is just a diff file, with is 3 kb.

         
  • ABK

    ABK - 2017-10-20

    Could you remind on how to properly install this patch?

     
  • Michael S.

    Michael S. - 2017-10-21

    Did you use the patches for aution.c and history.c from the CVS ? The "Unknown item" error usually occurs, if that patches are not applied to your sources.

     
    • ABK

      ABK - 2017-10-23

      This command does not fix the issue for me:
      cvs -z3 -d:pserver:anonymous@esniper.cvs.sourceforge.net:/cvsroot/esniper co -P esniper

       
      • Valerio Aimale

        Valerio Aimale - 2017-10-23

        cvs -z3
        -d:pserver:anonymous@esniper.cvs.sourceforge.net:/cvsroot/esniper co -P
        esniper
        cd esniper
        wget
        https://sourceforge.net/p/esniper/bugs/_discuss/thread/e690beac/b1c2/attachment/history.c.patch
        patch -p1 < history.c.patch

        ./configure

        make

        On 10/23/17 10:52 AM, ABK wrote:

        This command does not fix the issue for me:
        cvs -z3
        -d:pserver:anonymous@esniper.cvs.sourceforge.net:/cvsroot/esniper co
        -P esniper


        [bugs:#736] https://sourceforge.net/p/esniper/bugs/736/ Error
        encountered in function parseBidHistory in history.c line 182

        Status: open
        Group: v1.0 (example)
        Created: Thu Oct 12, 2017 09:07 PM UTC by Valerio Aimale
        Last Updated: Sat Oct 21, 2017 04:22 PM UTC
        Owner: nobody
        Attachments:

        esniper encountered a bug. Please go to:
        http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
        paste this into "Detailed Description":
        Automated esniper bug report.
        esniper version 2.33.0
        libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
        Error encountered in function parseBidHistory in history.c line 182
        auction = 152733715292, price = 211.11, remain = 0
        latency = 0, result = -1, error = 0
        buf = 0x532f840, size = 46281, read = 0x532f840
        time = 1507838492, offset = 0
        pagename = "Bid history", pageid = "(null)", srcid = "(null)"
        specified options or config values:
        1 x username(u) = /
        1 x password() = /

        1 x seconds(s) = 10
        1 x quantity(q) = 1
        1 x (c) = "esniper/config"
        1 x reduce() = 1
        1 x bid() = 1
        1 x debug(d) = 0
        1 x batch(b) = 0
        1 x logdir(l) = "/home/valerio/esniper/logs"
        no item number
        then upload and attach esniper.7252.1.bug.html and click submit.
        Auction 152733715292: Unknown item
        Retrying...
        esniper encountered a bug. Please go to:
        http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
        paste this into "Detailed Description":
        Automated esniper bug report.
        esniper version 2.33.0
        libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
        Error encountered in function parseBidHistory in history.c line 182
        auction = 152733715292, price = 211.11, remain = 0
        latency = 0, result = -1, error = 0
        buf = 0x532f840, size = 46281, read = 0x532f840
        time = 1507838495, offset = 0
        pagename = "Bid history", pageid = "(null)", srcid = "(null)"
        specified options or config values:
        1 x username(u) = /
        1 x password() = /

        1 x seconds(s) = 10
        1 x quantity(q) = 1
        1 x (c) = "esniper/config"
        1 x reduce() = 1
        1 x bid() = 1
        1 x debug(d) = 0
        1 x batch(b) = 0
        1 x logdir(l) = "/home/valerio/esniper/logs"
        no item number
        then upload and attach esniper.7252.2.bug.html and click submit.
        Auction 152733715292: Unknown item
        Retrying...
        esniper encountered a bug. Please go to:
        http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
        paste this into "Detailed Description":
        Automated esniper bug report.
        esniper version 2.33.0
        libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
        Error encountered in function parseBidHistory in history.c line 182
        auction = 152733715292, price = 211.11, remain = 0
        latency = 0, result = -1, error = 0
        buf = 0x532f840, size = 46281, read = 0x532f840
        time = 1507838498, offset = 0
        pagename = "Bid history", pageid = "(null)", srcid = "(null)"
        specified options or config values:
        1 x username(u) = /
        1 x password() = /

        1 x seconds(s) = 10
        1 x quantity(q) = 1
        1 x (c) = "esniper/config"
        1 x reduce() = 1
        1 x bid() = 1
        1 x debug(d) = 0
        1 x batch(b) = 0
        1 x logdir(l) = "/home/valerio/esniper/logs"
        no item number
        then upload and attach esniper.7252.3.bug.html and click submit.
        Auction 152733715292: Unknown item

        Auction 152733715292: Unknown item


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/esniper/bugs/736/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #736

  • Michael S.

    Michael S. - 2017-10-23

    Just downloading the sources does not fix the issue.
    You have to run

    ./configure
    make install

     
    • ABK

      ABK - 2017-10-23

      Michael, thanks for your replies. I've done that as well. Also manually copied history.c and auction.c and still getting " Error encountered in function parseBidHistory in history.c line 182
      ". Not sure what is going on.

       

      Last edit: ABK 2017-10-23
  • Michael S.

    Michael S. - 2017-10-23

    I see: The html code has changed again.

    From "Item number:" to "Item number:"

    Please try the attached patch.

    [...]

     

    Last edit: Michael S. 2017-10-23
  • Michael S.

    Michael S. - 2017-10-23

    There are a few more changes.

    cvs diff: Diffing .
    Index: history.c
    ===================================================================
    RCS file: /cvsroot/esniper/esniper/history.c,v
    retrieving revision 1.34
    diff -u -p -r1.34 history.c
    --- history.c   21 Oct 2017 15:42:12 -0000  1.34
    +++ history.c   23 Oct 2017 19:27:20 -0000
    @@ -169,7 +169,7 @@ parseBidHistoryInternal(pageInfo_t *pp, 
                bugReport("parseBidHistory", __FILE__, __LINE__, aip, mp, optiontab, "no item number");
                return auctionError(aip, ae_baditem, NULL);
            }
    -   } else if (memStr(mp, "<span>Item number:</span>")) { 
    +   } else if (memStr(mp, ">Item number:</span>")) { 
                     line = getNonTag(mp);   /* Item number: */
                     line = getNonTag(mp);   /* number */
            if (!line) {
    @@ -208,7 +208,7 @@ parseBidHistoryInternal(pageInfo_t *pp, 
                return auctionError(aip, ae_baditem, NULL);
            }
        /* Active auction */
    -        } else if (memStr(mp, "<span>Item info</span>")) {
    +        } else if (memStr(mp, ">Item info</span>")) {
                     line = getNonTag(mp);   /* Item title: */
                     line = getNonTag(mp);   /* title */
                     if (!line) {
    @@ -305,7 +305,7 @@ parseBidHistoryInternal(pageInfo_t *pp, 
            free(aip->remainRaw);
            aip->remainRaw = myStrdup("--");
            aip->remain = 0;
    -   } else if (memStr(mp, "<span>Time left:</span>")) {
    +   } else if (memStr(mp, ">Time left:</span>")) {
            char days[12];
            char hours[12];
            char minutes[12];
    

    I'm not sure, if it the post bid works, because some more investigations are required. Please be patient.

     

    Last edit: Michael S. 2017-10-23
    • ABK

      ABK - 2017-10-24

      Now seems to be working. Thanks a bunch!

       
      • Michael S.

        Michael S. - 2017-10-24

        Please leave a feedback, if you have won a auction with this modified version of history.c - Thanks.

         
    • Jason

      Jason - 2018-01-26

      Thanks Michael. That worked.

      I downloaded the patches and recompiled but was still getting the parse error, but after replacing history.c with your version, and making the package again esniper appears to be parsing the new ebay pages correctly.

      Where do you want people to leave feedback? In this forum or elsewhere?

       
  • onlyjob

    onlyjob - 2017-10-24

    Definitely better, thank you. I'll confirm once it makes a successful bid...

     
  • onlyjob

    onlyjob - 2017-10-26

    Confirming -- it works perfectly! :) Thanks.

     
  • GRR

    GRR - 2018-01-12
    patch -p1 < history.c.patch 
    patching file history.c
    Hunk #1 succeeded at 168 (offset -1 lines).
    Hunk #2 succeeded at 207 (offset -1 lines).
    Hunk #3 FAILED at 309.
    Hunk #4 succeeded at 367 (offset -14 lines).
    Hunk #5 succeeded at 387 (offset -14 lines).
    1 out of 5 hunks FAILED -- saving rejects to file history.c.rej
    

    hi, it doesnt work for me :(

     

    Last edit: GRR 2018-01-12
    • Valerio Aimale

      Valerio Aimale - 2018-01-12

      For me, these everything works ok. Did you apply the patch to the
      correct source tree? It seems that the patch failed.

      On 1/12/18 3:39 AM, GRR wrote:

      patch -p1 < history.c.patch
      patching file history.c
      Hunk #1 succeeded at 168 (offset -1 lines).
      Hunk #2 succeeded at 207 (offset -1 lines).
      Hunk #3 FAILED at 309.
      Hunk #4 succeeded at 367 (offset -14 lines).
      Hunk #5 succeeded at 387 (offset -14 lines).
      1 out of 5 hunks FAILED -- saving rejects to file history.c.rej

      hi, it doesnt work for me :(


      [bugs:#736] https://sourceforge.net/p/esniper/bugs/736/ Error
      encountered in function parseBidHistory in history.c line 182

      Status: open
      Group: v1.0 (example)
      Created: Thu Oct 12, 2017 09:07 PM UTC by Valerio Aimale
      Last Updated: Thu Oct 26, 2017 02:15 PM UTC
      Owner: nobody
      Attachments:

      esniper encountered a bug. Please go to:
      http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
      paste this into "Detailed Description":
      Automated esniper bug report.
      esniper version 2.33.0
      libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
      Error encountered in function parseBidHistory in history.c line 182
      auction = 152733715292, price = 211.11, remain = 0
      latency = 0, result = -1, error = 0
      buf = 0x532f840, size = 46281, read = 0x532f840
      time = 1507838492, offset = 0
      pagename = "Bid history", pageid = "(null)", srcid = "(null)"
      specified options or config values:
      1 x username(u) = /
      1 x password() = /

      1 x seconds(s) = 10
      1 x quantity(q) = 1
      1 x (c) = "esniper/config"
      1 x reduce() = 1
      1 x bid() = 1
      1 x debug(d) = 0
      1 x batch(b) = 0
      1 x logdir(l) = "/home/valerio/esniper/logs"
      no item number
      then upload and attach esniper.7252.1.bug.html and click submit.
      Auction 152733715292: Unknown item
      Retrying...
      esniper encountered a bug. Please go to:
      http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
      paste this into "Detailed Description":
      Automated esniper bug report.
      esniper version 2.33.0
      libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
      Error encountered in function parseBidHistory in history.c line 182
      auction = 152733715292, price = 211.11, remain = 0
      latency = 0, result = -1, error = 0
      buf = 0x532f840, size = 46281, read = 0x532f840
      time = 1507838495, offset = 0
      pagename = "Bid history", pageid = "(null)", srcid = "(null)"
      specified options or config values:
      1 x username(u) = /
      1 x password() = /

      1 x seconds(s) = 10
      1 x quantity(q) = 1
      1 x (c) = "esniper/config"
      1 x reduce() = 1
      1 x bid() = 1
      1 x debug(d) = 0
      1 x batch(b) = 0
      1 x logdir(l) = "/home/valerio/esniper/logs"
      no item number
      then upload and attach esniper.7252.2.bug.html and click submit.
      Auction 152733715292: Unknown item
      Retrying...
      esniper encountered a bug. Please go to:
      http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436
      paste this into "Detailed Description":
      Automated esniper bug report.
      esniper version 2.33.0
      libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
      Error encountered in function parseBidHistory in history.c line 182
      auction = 152733715292, price = 211.11, remain = 0
      latency = 0, result = -1, error = 0
      buf = 0x532f840, size = 46281, read = 0x532f840
      time = 1507838498, offset = 0
      pagename = "Bid history", pageid = "(null)", srcid = "(null)"
      specified options or config values:
      1 x username(u) = /
      1 x password() = /

      1 x seconds(s) = 10
      1 x quantity(q) = 1
      1 x (c) = "esniper/config"
      1 x reduce() = 1
      1 x bid() = 1
      1 x debug(d) = 0
      1 x batch(b) = 0
      1 x logdir(l) = "/home/valerio/esniper/logs"
      no item number
      then upload and attach esniper.7252.3.bug.html and click submit.
      Auction 152733715292: Unknown item

      Auction 152733715292: Unknown item


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/esniper/bugs/736/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #736

  • Michael S.

    Michael S. - 2018-01-12

    You should use the compled file from the cvs:

    rsync -ai a.cvs.sourceforge.net::cvsroot/esniper/esniper/history.c,v <yourdir>/history.c

     
  • GRR

    GRR - 2018-01-12

    same thing...

     
  • Michael S.

    Michael S. - 2018-01-12

    In this case we has to have a look into the html source, to find out, what has been changed by ebay.

     
    • GRR

      GRR - 2018-01-12

      rodger, thank you for your work :)

       
  • Michael S.

    Michael S. - 2018-01-12

    For me everything looks ok:

    $ cat esniper.5582.6.bug.html | esniper -X -X -d -c .cfg
    Auction 152857246158: GeForce gtx 460 1gb ram
    Time remaining: 2 days 5 hours 29 mins 0 secs (192540 seconds)
    Currently: 1.50  (your maximum bid: 2)
    # of bids: 2 (autom. bids included)
    High bidder: 5***5 (NOT xxxxxx)
    ret = 0
    

    Did you rebuild the binaries correctly ?

     
    • GRR

      GRR - 2018-01-12

      hum i think yes, thats what i am doing:
      tar -xzf esniper.tar
      cd /esniper
      ./configure
      make
      make check
      sudo make install
      make clean

      then i config properly my auction and config file.

      At this moment, i dont succes the patch to history.c and auction.c.

      Ive delete and retry many times...

       
  • Michael S.

    Michael S. - 2018-01-12

    Assuming your pwd is <mydir>, you have to do (as root):

    tar -xzf esniper-<version>.tgz
    cd esniper-<version>
    rsync -ai a.cvs.sourceforge.net::cvsroot/esniper/esniper/history.c,v history.c
    ./configure
    make
    make install
    
     
1 2 > >> (Page 1 of 2)

Log in to post a comment.