It looks like ebay have finally killed the legacy route. I managed to get round the 783 bug (which I raised) by rolling back to 2.35.0, as suggested by John Cuzzourt. That, and checking out the legacy version now both fail looking for a captcha URL.
It looks like ebay have finally killed the legacy route. I managed to get round the 783 bug (which I raised) by rolling back to 2.35.0, as suggested by John Cuzzourt. That, and checking out the legacy version now both fail looking for a captch URL.
Hi Michael, as we are in different locations and have different ISPs, it must be due to variations in route. By default the DNS for my Rpis is the hardwired one in the router, which is supplied by Virgin Media. I can, however, change the DNS for a Rpi to Google's public DNS servers by adding the line: static domain_name_servers=8.8.4.4 8.8.8.8 I wonder if this might make your version of rolled back esniper work again?
Hi Michael, yes I still have 32.5.0 working on two Rpi zero w machine, set up as my post of 6 days ago describes. I'm fairly sure that I could start from scratch with a Raspbian busterlite downloaded and put on to a spare Rpi zero that I have. If that would be of any help I can do that and document every step that I take. When I rolled back to 32.5.0, the only way I could do it was to git clone the tip. then do the git checkout 69675c to roll it back. I don't know if there is a quicker way. Let me...
I have it still working on the code rolled back to 2.35.0 On my Raspberry Pi (Buster lite) I did: 1)git cloned the tip into a new directory 2)git checkout 69675c to roll it back 3)Did the aclocal, autoconf, . /configure stuff 4)make, sudo make install esniper -v shows: esniper version 2.35.0
I have it still working on the code rolled back to 32.5.0 On my Raspberry Pi (Buster lite) I did: 1)git cloned the tip into a new directory 2)git checkout 69675c to roll it back 3)Did the aclocal, autoconf, . /configure stuff 4)make, sudo make install esniper -v shows: esniper version 2.35.0
I'm astonished! - Well done John!! I have just done a 'bid=no' test on an item and got: Auction 223757444002: Bidding... Bidding disabled Auction 223757444002: Waiting 6 seconds for auction to complete... Auction 223757444002: Post-bid info: Auction 223757444002: Shefford Brewery Beer Pump Clip Badge, Trade Mark Dark Mild Ale Time remaining: -- (0 seconds) of bids: 0 Currently: -- (your maximum bid: 2.00) High bidder: -- (NOT my ebayid ) unknown outcome, assume that you have won 1 items I rolled...
Michael, Even in java with a GUI connection, I would struggle to get the cookies. I think the Async task with its associated callback would cause the most difficulty, especially on my always-on headless Raspberry Pi Zero W, accessed via ssh. I have what, for me might be a possible route, using my junk laptop running Ubuntu and firefox in collaboration with the RPi. I see that from first use the DG cookies have an expiry date of about a month in the future. I can find the value of all those DG cookies...
Login fails on 'Security measure page"
I also have a Pi 2 and tried the SD card from zero on it. It failed. I then cloned the code into a different directory built it and it also failed. I thought that maybe it's because I've been using the lite versions of the OS. I then put the latest full (not lite) stretch image on the Pi2, built the code and it also failed to wake up. I'm at a loss to think why your esniper works with a seemingly identical setup to mine which fails. I'm just happy that now I've switched to buster, my zero works all...
Hello Michael, thank you for all your help on this bug - I'm happy to attribute the errors in operation firmly at the feet of the curl's authors. To expand - this morning I started with the official Raspberry PI last image of 2019-04-08-raspbian-stretch-lite.img. I put git, libcurl4-gnutls-dev and automake on to it and that's all. I built esniper and tested it with "bid = no" set. It failed to wake up as before. The curl version is the same as before (7.52.1). After an apt-get update, it still has...
I have some more information regarding this bug: For months running on a raspberry pi with Stretch o/s it has failed and still does. I have now upgraded my pi to the new Buster raspbian o/s and built esniper and it works OK! When I was trying to debug it, I also noted that when I ran it on my old laptop (Ubuntu 14.04) through Eclipse, then curl debug showed 'connection nn has died' when it lost the auction id. However I have this information regarding the pi Raspbian versions, which might be of use...
Thank you for your help Michael. I did say in bug 764 that I knew it was hanging in curl_easy_perform and had added log lines to prove that. I wish I could produce the smallest reproducible example of a fault in curl. I shall investigate. What I can't understand is why this problem occurs on my RPi (and my Ubuntu machines) and you (and presumably every other user) have working systems. After all you have a Stretch Rpi with the same gcc, openssh, curl and evrything else being the same as mine. The...
With lines out of hosts and two lines suggested in http.c I got: Operation timed out after 29134 milliseconds with 0 bytes received Curl_http_done: called premature == 1 stopped the pause stream! Closing connection 0 Latency: 30 seconds Auction 303142039211: Cannot connect to URL https://offer.ebay.com/ws/eBayISAPI.dll?ViewBids&item=303142039211: Timeout was reached: Operation timed out after 29134 milliseconds with 0 bytes received Cannot find auction - internet or eBay problem? Will try again after...
I'm not sure what you were/are afraid of (please explain) but with the two lines in http.c at 2 minutes to go I got this in nohup.out Operation timed out after 28940 milliseconds with 0 bytes received Curl_http_done: called premature == 1 stopped the pause stream! Closing connection 0 Latency: 30 seconds Auction 153479436221: Cannot connect to URL https://offer.ebay.com/ws/eBayISAPI.dll?ViewBids&item=153479436221: Timeout was reached: Operation timed out after 28940 milliseconds with 0 bytes received...
Thanks, I tried that it didn't wake at 2 minutes to go after putting those lines in hosts which were picked up from nohup.out Found bundle for host www.ebay.com: 0x17df240 [can pipeline] Re-using existing connection! (#0) with host www.ebay.com Connected to www.ebay.com (23.211.2.124) port 443 (#0) GET /bfl/viewbids/392291265209 HTTP/1.1 The grep gave: grep host /etc/nsswitch.conf hosts: files mdns4_minimal [NOTFOUND=return] dns I'll try adding those lines like : log(("%s", logUrl ? logUrl : url));...
Sadly the test didn't take too long. cat /etc/resolv.conf (hash symbol)Generated by resolvconf nameserver 8.8.8.8 didn't fix it. Behaviour much the same as before. Starting from 16 minutes to go, it woke for the 10 minute to go slot but failed to wake for the 2 minute one.
Thank you Michael It's now under test using Google's 8.8.8.8 DNS, which I made permanent via dhcpcd.conf. I'll report back after a long test Regards Nick
Thanks Michael If it were a DNS issue for a browser, I could change the server in Windows and I guess under Ubuntu too. As it's for a headless Pi, I'm stuck with what's avavilable via the VM Superhub (badged Netgearrouter). There's no such option available, unless I buy another router and set the VM one to modem mode. Regards Nick
I thinkthat you are probably correct. When I could debug this in Eclipse on an old laptop last year, I remember that it seemed to hang in one of the curl_easy functions. I could see the same bug under Ubuntu 14.04 and on a newer laptop running 18.04. The question is why just me who reports a fault? I can only conclude that it must be down to my UK location. This would make sense if it was running from a browser in which I login via ebay.co.uk but why from a headless RPi? Perhaps the user-agent? Any...
Relevant lines from the log ( <<<<< my comments) 2019-05-12 09:30:29.471858 Latency: 1 seconds 2019-05-12 09:30:29.472059 Sleeping for 8 minutes 0 seconds <<<<<< Sleep unti 2 minutes before end 2019-05-12 09:38:29.472330 getInfo auction 183799500703 price 1.53 user MYUSERNAME 2019-05-12 09:38:29.472733 https://offer.ebay.com/ws/eBayISAPI.dll?ViewBids&item=183799500703 <<<< it woke up and tried this and hung 2019-05-12 09:54:58.032095 checking for META Refresh <<<<<<< 16 minutes later- far too late...
redacted ny username
Thank you. Here's the o/p that you asked for: $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.9 (stretch) Release: 9.9 Codename: stretch $ dpkg -l | grep -iE '.curl.dev.*' ii libcurl4-openssl-dev:armhf 7.52.1-5+deb9u9 armhf development files and documentation for libcurl (OpenSSL flavour) ldd /usr/local/bin/esniper | grep curl libcurl.so.4 => /usr/lib/arm-linux-gnueabihf/libcurl.so.4 (0xb6f05000) My internet connection is good (Virgin Media...
Fails to wake up for its 2 minute check (often but not always)long past auction end, get bid uiid not found
Hello, I am pleased to tell you that I now have a working esniper on my PI, thanks to all your help, my persistence and some luck. I noticed that if I ran esniper with the command esniper item_number bid_amount and then entered mu username and password at the prompts, the bid succeeded butI have always invoked esniper with the command esniper myauction. I then tested this out by making some changes and attempting to buy cheap junk. I also altered the source to make MIN_BID_TIME = 2 I had .esniper...
I have got rid of the sign in error by removing the line: loginHost = signin.ebay.com from .esniper. I think it doesn't like having the default explicitly stated. It has now returned to the original error of not making a bid at the required time. tail esniper.312585422729.log 2019-05-02 19:19:28.966399 Sleeping for 7 minutes 2 seconds 2019-05-02 19:26:30.967684 getInfo auction 312585422729 price 2.35 user myname 2019-05-02 19:26:30.968089 https://offer.ebay.com/ws/eBayISAPI.dll?ViewBids&item=312585422729pi@0wifi:~/aucdata...
Hi, Into an empty dir it dropped all this lot from a single esniper myauction command: -rw-r--r-- 1 pi pi 1227 May 2 16:41 esniper.log -rw-r--r-- 1 pi pi 54654 May 2 16:41 esniper.5734.1.bug.html -rw-r--r-- 1 pi pi 54654 May 2 16:41 esniper.5734.2.bug.html -rw-r--r-- 1 pi pi 54654 May 2 16:41 esniper.5734.3.bug.html -rw-r--r-- 1 pi pi 54654 May 2 16:41 esniper.5734.4.bug.html -rw-r--r-- 1 pi pi 54654 May 2 16:41 esniper.5734.5.bug.html -rw-r--r-- 1 pi pi 54654 May 2 16:41 esniper.5734.6.bug.html...
I have done everything suggested to no effect 1. sudo apt-get remove libcurl4-gnutls-dev 2 sudo apt-get install libcurl4-openssl-dev 3. from my home dir : rm -rf esniper (esniper now gone) 4. git clone https://git.code.sf.net/p/esniper/git esniper (made esniper dir) 5. cd esniper 6 aclocal 7 autoconf 8 ./configure 9 make 10 sudo make install 11 went to dir ~/aucdata wher I had file myauction containing: 283462964925 1.35 seconds = 6 bid = yes and I get esniper encountered a bug. Please go to: http://sourceforge.net/tracker/?func=add&group_id=45285&atid=442436...
I did all that and found an auction, only to get: esniper myauction 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.35.1 libcurl/7.52.1 OpenSSL/1.0.2r zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3 Error encountered in function ebayLogin in auction.c line 567 auction = 143230657929, price = 0.15, remain...
Thank you. I have done apt-get update and dist-upgrade to get: $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.9 (stretch) Release: 9.9 Codename: stretch $ dpkg -l | grep libcurl | awk '{print $2 "\t" $3}' libcurl3:armhf 7.52.1-5+deb9u9 libcurl3-gnutls:armhf 7.52.1-5+deb9u9 libcurl4-gnutls-dev:armhf 7.52.1-5+deb9u9 ldd $(which esniper) | grep curl libcurl-gnutls.so.4 => /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4 (0xb6e9c000) I have then...
Thank you very much Michael, I was beginning to think that maybe the project was dead. I'd being using esniper on my PiZeroWifi quite successfully, then sometime last year it stopped working. I'd been trying to debug on an old Ubuntu laptop using Eclipse and sources from Git and from memory the code hung in a function called something like easy_curl???. Anyway it's still going wrong on my Pi and the results you asked for are: $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian...
I have continued to have the same error in esniper all this time. This happens under Ubuntu 14.04 and Raspbian (latest for Raspberry Pi) In both cases esniper doesn't make the bid in time and when it reconnects. the auction is over. I feel thatit must be due to changes over the last year on ebay pages. I can't believe that I'm the only person in the UK running esniper under Linux that has this error. I have enabled curl-debug and see several instances of "connection 3 (say) is dead". I also feel...
I have taken this as far as I can with my analysis and could do with some help. I cansay that the ebay process gets stuck in curl_easy_perform and never returns at the last stage. I have proved this on my raspberry pi, a laptop running Ubuntu 14.04 and one running Ubuntu 18.04. I have the latest git sources. I have added log lines to auction.c and most importantly to http.c as follows: in http.c httpRequest printLog(stdout, "easyhandle is %d\n", easyhandle); printLog(stdout, "the url is %s\n", logUrl...
I have taken this as far as I can with my analysis and could do with some help. I cansay that the ebay process gets stuch in curl_easy_perform and never returns at the last stage. I have proved this on my raspberry pi, a laptop running Ubuntu 14.04 and one running Ubuntu 18.04. I have the lates git sources. I have added log lines to auction.c and most importantly to http.c as follws: in http.c httpRequest printLog(stdout, "easyhandle is %d\n", easyhandle); printLog(stdout, "the url is %s\n", logUrl...
I'm not sure if that means that you think there is nothing wrong with esniper, however I can't get it to work at all. I normally run it on a Raspberry Pi but I can run it on an old laptop as well. I've managed to put an old version of Eclipse IDE on the laptop, load the latest esniper code as a C project and am in a position to debug and set breakpoints. If you can suggest a file name and line number for a useful break point, I am happy to help with the diagnosis.
Here are all the log lines prior to the connection at 1138 which was too late: 2018-08-29 11:01:54.336009 getNonTag(): returning GBP 3.20 2018-08-29 11:01:54.336131 Currently: 3.20 (your maximum bid: 7.11) 2018-08-29 11:01:54.338036 # of bids: 8 (autom. bids included) 2018-08-29 11:01:54.338864 High bidder: hd (NOT my_ebay_id) 2018-08-29 11:01:54.339602 Latency: 0 seconds 2018-08-29 11:01:54.341211 Sleeping for 20 minutes 20 seconds 2018-08-29 11:22:14.343214 getInfo auction 283118241514 price 7.11...
Thank you for the quick response. I'm attaching a fragemnt of the log file from the connection to ebay.com as requested.
The first bug html mentioed
Bid uiid not found (for both ebay.com and ebay.co.uk)
Latest test: esniper started yesterday for an auction ending at 8:58 today, again ended too early. This slight modification to the logging code: / ran out of time! / if (aip->endTime <= time(NULL)) { printLog(stdout, "quitting at 1065\n"); printLog(stdout, "aip->endTime is %ld\n",aip->endTime); printLog(stdout, "current time is %ld\n", time(NULL)); tmPtr = localtime(&(aip->endTime)); strftime(timestr , 20, "%d/%m/%Y %H:%M:%S", tmPtr); printLog(stdout, "End time as a date string: %s\n", timestr);...
I have explored this bug a bit further and think that it only occurs if esniper is launched the day before the auction actually ends. I launched it yesterday on my Raspberry Pi (Stretch Lite) and set it to snipe a bid before the auction end time of 8.11 this morning. I also added some log lines to catch where it hit the error ae_ended. At 8.01 esniper quit with: 2018-02-25 08:01:34.031779 getUntil('"') 01000200000050222ee8d3bebf5dbbd8bb7d126b4e6be0d31ac9c089fb17e50c4ae28cb9852164f256cbbd1903fed2e0f53081552cf365345c1fbdcffb56348948542ecc02a00507f8809a99c84c12b7d426484ca00f5e"...
I have explored this bug a bit further and think that it only occurs if esniper is launched the day before the auction actually ends. I launched it yesterday on my Raspberry Pi (Stretch Lite) and set it to snipe a bid before the auction end time of 8.11 this morning. I also added some log lines to catch where it hit the error ae_ended. At 8.01 esniper quit with: 2018-02-25 08:01:34.031779 getUntil('"') 01000200000050222ee8d3bebf5dbbd8bb7d126b4e6be0d31ac9c089fb17e50c4ae28cb9852164f256cbbd1903fed2e0f53081552cf365345c1fbdcffb56348948542ecc02a00507f8809a99c84c12b7d426484ca00f5e"...
I have explored this bug a bit further and think that it only occurs if esniper is launched the day before the auction actually ends. I launched it yesterday on my Raspberry Pi (Stretch Lite) and set it to snipe a bid before the auction end time of 8.11 this morning. I also added some log lines to catch where it hit the error ae_ended. At 8.01 esniper quit with: 2018-02-25 08:01:34.031779 getUntil('"') 01000200000050222ee8d3bebf5dbbd8bb7d126b4e6be0d31ac9c089fb17e50c4ae28cb9852164f256cbbd1903fed2e0f53081552cf365345c1fbdcffb56348948542ecc02a00507f8809a99c84c12b7d426484ca00f5e"...
built from Git quits with "Auction has ended" 10 minutes before actual end
Thank you, you're right. It even works from the command line on the PiZero now, although I didn't think it would.
Thank you for the info regarding 'you have to login from browser first'. Let me describe some of my observations. I have two raspberrypi computers, both headless, running 24/7, both with esniper 2.33 installed. One pi is a zero with minimal configuartion, i.e. no GUI, the other is the first model B with TightVNC server installed and on that one I can run a (very slow) browser. If I try to run esniper from the command line (my preferered method on the PiZero) and on the model B, I get the update personal...
This revision worked successfully for me on the 5th June running on my Raspberry...
This revision worked successfully for me on the 5th June running on my Raspberry...
Bid uid not found