davidofwatkins / ge-cancellation-checker

A PhantomJS script that checks your GOES account for a sooner Global Entry enrollment appointment
173 stars 74 forks source link

Script errors out with "Fatal error: Unable to find terms acceptance button" #12

Closed bmhatfield closed 8 years ago

bmhatfield commented 8 years ago

Not running with any special flags. This started today, or perhaps yesterday.

Fatal error: Unable to find terms acceptance button

yo-da-man commented 8 years ago

The GOES site changed yesterday so the script will not work. I've submitted new code changes to the repository. Hopefully, the owner will absorb these into the branch soon.

davidofwatkins commented 8 years ago

Thanks guys, @yo-da-man's PR's have been merged!

flyize commented 8 years ago

I'm still getting the same error.

flyize commented 8 years ago

07/20/2016 01:52:33 PM Running GE cron with arguments: {'no_email': False, 'configfile': './config.json', 'notify_osx': False, 'use_gmail': False} 07/20/2016 01:52:36 PM Couldn't convert output: Fatal error: Unable to find terms acceptance button from phantomJS script into a valid date. Traceback (most recent call last): File "./ge-checker-cron.py", line 70, in main new_apt = datetime.strptime(script_output, '%B %d, %Y') File "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime (data_string, format)) ValueError: time data 'Fatal error: Unable to find terms acceptance button' does not match format '%B %d, %Y'

yo-da-man commented 8 years ago

Can you please send us the output from a verbose run of the phantom js script: phantomjs --ssl-protocol=any ge-cancellation-checker.phantom.js -v

On Wed, Jul 20, 2016 at 10:54 AM, flyize notifications@github.com wrote:

07/20/2016 01:52:33 PM Running GE cron with arguments: {'no_email': False, 'configfile': './config.json', 'notify_osx': False, 'use_gmail': False} 07/20/2016 01:52:36 PM Couldn't convert output: Fatal error: Unable to find terms acceptance button from phantomJS script into a valid date. Traceback (most recent call last): File "./ge-checker-cron.py", line 70, in main new_apt = datetime.strptime(script_output, '%B %d, %Y') File "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime (data_string, format)) ValueError: time data 'Fatal error: Unable to find terms acceptance button' does not match format '%B %d, %Y'

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidofwatkins/ge-cancellation-checker/issues/12#issuecomment-234028209, or mute the thread https://github.com/notifications/unsubscribe-auth/ATl65LYWhFr47ghMsE7KJesV-PJrdZvuks5qXmDdgaJpZM4JPxzr .

flyize commented 8 years ago

Not much more there:

[ec2-user@ufWeb ge-cancellation-checker]$ phantomjs --ssl-protocol=any ge-cancellation-checker.phantom.js -v Please wait... On GOES login page... Logging in... Fatal error: Unable to find terms acceptance button

yo-da-man commented 8 years ago

Did you use the new config.json.example file? The GOES login page URL has also changed as of 18 July.

On Wed, Jul 20, 2016 at 1:03 PM, flyize notifications@github.com wrote:

Not much more there:

[ec2-user@ufWeb ge-cancellation-checker]$ phantomjs --ssl-protocol=any ge-cancellation-checker.phantom.js -v Please wait... On GOES login page... Logging in... Fatal error: Unable to find terms acceptance button

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidofwatkins/ge-cancellation-checker/issues/12#issuecomment-234064943, or mute the thread https://github.com/notifications/unsubscribe-auth/ATl65IYc0TGVcqjZ5VBjwAvgUAMbRmlVks5qXn8AgaJpZM4JPxzr .

flyize commented 8 years ago

I did. Here are the contents, with obvious stuff removed.

{ "current_interview_date_str": "September 1, 2016", "logfile": "ge.log",

"email_from": "EMAIL@yahoo.com",
"email_to": ["EMAIL@gmail.com"],

"username": "ID",
"password": "PASSWORD",
"enrollment_location_id": "8020",
"init_url": "https://goes-app.cbp.dhs.gov/goes/jsp/login.jsp",

"__comment": "Below are optional:",
"use_gmail": false,
"gmail_password": "<only required if use_gmail is true>",
"no_email": false,                                                                                                                                   
"notify_osx": false

}

yo-da-man commented 8 years ago

I can't see anything obvious here so sorry I can't help :-(.

I will say that the site is very flaky. I get the same error multiple times during the day but then it self resolves. For example, at the moment- I can't login via login page (so the script is throwing the exception you mention). Trying to login interactively is also not working as my (valid) username and password are being rejected.

On Wed, Jul 20, 2016 at 3:46 PM, flyize notifications@github.com wrote:

I did. Here are the contents, with obvious stuff removed.

{ "current_interview_date_str": "September 1, 2016", "logfile": "ge.log",

"email_from": "EMAIL@yahoo.com", "email_to": ["EMAIL@gmail.com"],

"username": "ID", "password": "PASSWORD", "enrollment_location_id": "8020", "init_url": "https://goes-app.cbp.dhs.gov/goes/jsp/login.jsp",

"__comment": "Below are optional:", "use_gmail": false, "gmail_password": "", "no_email": false, "notify_osx": false

}

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidofwatkins/ge-cancellation-checker/issues/12#issuecomment-234107475, or mute the thread https://github.com/notifications/unsubscribe-auth/ATl65PYyfx3KcQ-TVHtNYcQL27-j5J0Oks5qXqVbgaJpZM4JPxzr .