jpchip / giveaway-grabber

Automated Amazon Giveaways using Node & Puppeteer (until 10/17/19) 🎁
MIT License
74 stars 20 forks source link

could not find box - could not find result #108

Closed famewolf closed 5 years ago

famewolf commented 5 years ago

Upgraded to latest with "git pull origin master" and started it up....it showed "could not find result. Moving on !" on the very first 2 sweeps so I cancelled it and did a restart. Similar results occured...it skipped the first two thinking they were "done" when they were not. Personally I'd think a "could not find result" should be marked for a retry so when the program is ran again it would try them again but this issue seems to occur on every sweep. I tried this both before and after I applied the patch I use to adjust the timing to 10000ms instead of 5000ms in a few places due to my slow net. I am using the local version of chrome as opposed to the built in version so I disabled that and ran just chromium. Similar results.

No email field Page 1 Start: giveaway 1 url: /ga/p/34a4fcde6d8e00bc giveaway 1 already entered. giveaway 2 url: /ga/p/a8c129816c8c1cfd giveaway 2 already entered. giveaway 3 url: /ga/p/1c5fb96536fdd038 giveaway 3 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... Rudi, you didn't win could not get result, oh well. Moving on! giveaway 4 url: /ga/p/590b1bfca8eb72ca giveaway 4 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... Rudi, you didn't win could not get result, oh well. Moving on! giveaway 5 is blacklisted [for women]. giveaway 6 url: /ga/p/8ac00bce4412e4ee giveaway 6 already entered. giveaway 7 url: /ga/p/82a5cfbc90766fa5 giveaway 7 is ready! waiting for box... Rudi, you didn't win could not get result, oh well. Moving on! giveaway 8 url: /ga/p/9282d51729fd8f5a giveaway 8 is ready! waiting for box... Rudi, you didn't win could not get result, oh well. Moving on! lets try that again. waiting for box... could not find box? Rudi, you didn't win could not get result, oh well. Moving on! giveaway 9 url: /ga/p/a39898858c00773c giveaway 9 is ready! waiting for box... ^C


Using default chomium instead of local chrome

Page 1 Start: giveaway 1 has already been checked per DB record. giveaway 2 has already been checked per DB record. giveaway 3 url: /ga/p/1c5fb96536fdd038 giveaway 3 already entered. giveaway 4 url: /ga/p/590b1bfca8eb72ca giveaway 4 already entered. giveaway 5 is blacklisted [for women]. giveaway 6 has already been checked per DB record. giveaway 7 url: /ga/p/82a5cfbc90766fa5 giveaway 7 already entered. giveaway 8 url: /ga/p/9282d51729fd8f5a giveaway 8 already entered. giveaway 9 url: /ga/p/a39898858c00773c giveaway 9 is ready! waiting for box... Rudi, you didn't win could not get result, oh well. Moving on! lets try that again. waiting for box... could not find box? Rudi, you didn't win could not get result, oh well. Moving on! giveaway 10 url: /ga/p/b206d2b7e779dea3 giveaway 10 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... Rudi, you didn't win could not get result, oh well. Moving on! giveaway 11 url: /ga/p/4367c9461b2719a0 giveaway 11 already entered. giveaway 12 url: /ga/p/f7168461517a6045 giveaway 12 is ready!

It's actually getting to the box and clicking on it but then exiting with no results found instead of showing the result. I ran out of ideas at this point. If I'm the only one experiencing this I can try saving my .ggrc.json and install it fresh but if I can avoid that I'd like to.

ghost commented 5 years ago

I am having the same issue with a fresh install on Ubuntu and Chromium. Including the Can't find iframe.

famewolf commented 5 years ago

I'm also on ubuntu so that narrows it down.

jpchip commented 5 years ago

I tried doing a totally fresh install (ie. a new git clone), and still couldn't reproduce the problem. I had been thinking the Ubuntu part was a red herring, but maybe it really IS causing a problem! Will have to get it running on my old Ubuntu box and see what happens.

C:\workspace\giveaways>npm start

> giveaway-grabber@4.1.0 prestart C:\workspace\giveaways
> npm install --production

audited 477296 packages in 6.912s
found 0 vulnerabilities

> giveaway-grabber@4.1.0 start C:\workspace\giveaways
> node index.js

Waiting for two factor authentication...
Table created
Version initialized to 0
Created URL Table
Set DB Version to 1
Page 1 Start:
giveaway 1 url: /ga/p/eed93b265800fd46
giveaway 1 is ready!
waiting for box...
Jared, you didn't win
giveaway 2 url: /ga/p/0d18f5e375309670
giveaway 2 is ready!
waiting for box...
Jared, you didn't win
giveaway 3 url: /ga/p/c457f9efed50fccf
giveaway 3 is ready!
waiting for video (~15 secs)...
could not find #youtube-iframe, trying other selectors...
Jared, you didn't win
giveaway 4 url: /ga/p/e91aab5ee342f6d3
giveaway 4 is ready!
waiting for video (~15 secs)...
could not find #youtube-iframe, trying other selectors...
could not find .youtube-video
could not find video, oh well. Moving on!
giveaway 5 url: /ga/p/393358aacd97ffbb
giveaway 5 is ready!
waiting for video (~15 secs)...
could not find #youtube-iframe, trying other selectors...
Jared, you didn't win
giveaway 6 url: /ga/p/541e2ef1b851cad0
giveaway 6 is ready!
waiting for box...
Jared, you didn't win
giveaway 7 url: /ga/p/9b7d00966d5e2536
giveaway 7 is ready!
waiting for box...
Jared, you didn't win
giveaway 8 url: /ga/p/a9c550e2c140f02a
giveaway 8 is ready!
waiting for video (~15 secs)...
could not find #youtube-iframe, trying other selectors...
Jared, you didn't win
giveaway 9 url: /ga/p/22a26563b81e557e
giveaway 9 is ready!
waiting for box...
Jared, you didn't win
giveaway 10 url: /ga/p/41a3cd4039b561b1
giveaway 10 is ready!
waiting for video (~15 secs)...
could not find #youtube-iframe, trying other selectors...
Jared, you didn't win
giveaway 11 url: /ga/p/1959b8f18517d1ba
giveaway 11 is ready!
waiting for video (~15 secs)...
could not find #youtube-iframe, trying other selectors...
Jared, you didn't win
giveaway 12 url: /ga/p/9bcce2048aa38329
giveaway 12 is ready!
waiting for box...
Jared, you didn't win
giveaway 13 url: /ga/p/c17ccf78957a6585
giveaway 13 is ready!
waiting for box...
Jared, you didn't win
famewolf commented 5 years ago

Perhaps the new version of puppeteer download and installed has an issue under ubuntu or linux in general but it would explain why I'm getting all these error's no one else can find.

ghost commented 5 years ago

Anything I can do to help narrow it down let me know.

famewolf commented 5 years ago

If it helps..these issues all started for me after version 3.4.1 which is the version I keep going back to. The main change after that was adding the database.

You also have the option of running ubuntu in a vm using Virtualbox (which is free) as an alternative. That would give you a "standardized virtual hardware platform" that should eliminate some possible issues.

ghost commented 5 years ago

I have the LTS Bionic Beaver Install on a VM with nothing but the Giveaway Grabber running. It is having the Cannot locate iframe and could not get results issue. Hopefully that eliminates conflicts of other software or anything else. I can try install Chrome instead of chromium but i'm honestly not sure how to point GG to chrome in Ubuntu

cheezwiz789 commented 5 years ago

@clever83

Try

/usr/bin/google-chrome

edit: fixed path... darn phone autocorrect thinks it's smarter than I am...

ghost commented 5 years ago

Chrome installed at working, however it doesn't seem to have fixed the issue completely.

giveaway 5 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... could not find .youtube-video could not find #airy-container Cliff, you didn't win could not get result, oh well. Moving on!

famewolf commented 5 years ago

@clever83

Try

/usr/bin/google-chrome

edit: fixed path... darn phone autocorrect thinks it's smarter than I am...

As demonstrated in post #1 scenario occurs both with local chrome and built in chromium. For Neon (Ubuntu) it's "/opt/google/chrome/chrome"

famewolf commented 5 years ago

Any progress on fixing this for linux users? Anything else we can provide?

jpchip commented 5 years ago

Sorry, have not had a chance to dig into this, and was really kinda hoping someone with a linux box would jump in and help...

I'm still stumped why it would run differently on linux. My first guess, based on the logs, would be that there is a function not being await-ed somewhere, but that probably isn't the culprit as it would do the same thing on windows?

Hopefully can find some time in the next week or so to dig into it more.

jpchip commented 5 years ago

I added better error handling on results, could y'all having the problems upgrade and try again?

ghost commented 5 years ago

Sorry for the late reply. I know i'm not the ticket owner but Just wanted to say i'm not having any issue with finding results now. So thank you.

jpchip commented 5 years ago

@famewolf have you had any luck with the most recent version?

famewolf commented 5 years ago

Apologies. I did not see your previous comment and didn't see anything in the changelog when new release came out so had not done anything with it. I'll set aside some time to upgrade today and report back tomorrow.

famewolf commented 5 years ago

Initial outlook is good.

No email field Table created Version initialized to 0 Created URL Table Set DB Version to 1 Page 1 Start: giveaway 1 is blacklisted [pregnancy]. giveaway 2 url: /ga/p/c084cf15cd6da974 giveaway 2 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... xxx, you didn't win giveaway 3 url: /ga/p/3a8f1cfdb5974bf4 giveaway 3 is ready! waiting for video (~15 secs)... could not find #youtube-iframe, trying other selectors... xxx, you didn't win giveaway 4 url: /ga/p/6b710d0c01269dec giveaway 4 is ready! waiting for box... xxx, you didn't win giveaway 5 url: /ga/p/4b128966e88045b8 giveaway 5 is ready! waiting for box... xxx, you didn't win giveaway 6 url: /ga/p/ef409897f8a9ac36 giveaway 6 is ready! waiting for box...

famewolf commented 5 years ago

So what happens if someone changes their blacklist to REMOVE a keyword and wishes to re-run to catch previously blacklisted entries? They just have to wait till the next day?

famewolf commented 5 years ago

I have not used the version with the database due to previous issues. Should I be seeing entries indicating it's skipping a sweep because it's already been checked when I know it's a page/entry that has NOT been ran in the previous 24 hours? (I actually have not ran this in several days so everything should be fresh) ie are they repeating some sweeps as we go through pages/entries?

xxx, you didn't win giveaway 7 has already been checked per DB record. giveaway 8 is blacklisted [for women]. giveaway 9 has already been checked per DB record. giveaway 10 url: /ga/p/6918ac113c60e3d8

Other than telling me items have already been checked that I'm not sure actually were it appears to be working fine now on my linux system.