Comments (6)
Hello, I got a similar error, except 'Cannot read property of json' instead of 'url'. Here is what happened after I was able to leave the waiting room:
INFO (5740 on MacBook-Pro.local): Logging in... INFO (5740 on MacBook-Pro.local): Finding available times for a G exam INFO (5740 on MacBook-Pro.local): Going to be searching these DriveTest centers: Barrie, Clinton, Collingwood, Guelph, Guelph Temporary Testing Site, Kitchener, Orillia, Owen Sound, Parry Sound, Stratford, Walkerton INFO (5740 on MacBook-Pro.local): Searching August at location Barrie INFO (5740 on MacBook-Pro.local): Searching September at location Barrie INFO (5740 on MacBook-Pro.local): Searching October at location Barrie INFO (5740 on MacBook-Pro.local): Searching November at location Barrie INFO (5740 on MacBook-Pro.local): Searching December at location Barrie ERROR (5740 on MacBook-Pro.local): Attempt 1 to call selectLocation failed...waiting 1 second INFO (5740 on MacBook-Pro.local): Searching August at location Clinton INFO (5740 on MacBook-Pro.local): If you appreciate my work, feel free to buy me a ☕️ (coffee) here 😊: https://www.buymeacoffee.com/rushilperera ERROR (5740 on MacBook-Pro.local): TypeError: Cannot read property 'json' of undefined at findAvailableDates_1 (/snapshot/drivetest-ca-availabilities/scraper.js) at findAvailableDates_1.next (<anonymous>) at resume (/snapshot/drivetest-ca-availabilities/scraper.js) at fulfill (/snapshot/drivetest-ca-availabilities/scraper.js)
(sorry for the poor formatting, not sure why the line breaks are being removed when I try to post code.)
from drivetest-ca-availabilities.
scraper.js:203:64 is this line:
Number(new URLSearchParams(bookingDateResponse.url().split("?").pop()).get("month")) - 1;
from drivetest-ca-availabilities.
Just noticed there is a log file too:
{"level":30,"time":1628704223338,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"Going to be searching these DriveTest centers: Oakville"}
{"level":20,"time":1628704223356,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"received response locations"}
{"level":20,"time":1628704223363,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"Attempt 1: calling selectLocation"}
{"level":20,"time":1628704223364,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"clicking a[id=\"9580\"]"}
{"level":20,"time":1628704223431,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"clicking #booking-location > div > div > form > div.form-group.loc-submit > div.directive_wrapper.ng-isolate-scope > button"}
{"level":20,"time":1628704223464,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"Called selectLocation successfully"}
{"level":20,"time":1628704223464,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"waiting for response with dates for location"}
{"level":10,"time":1628704228467,"pid":24668,"hostname":"DESKTOP-CRQBOB1","msg":"failed to wait for response"}
from drivetest-ca-availabilities.
Will try and investigate this issue once the website decides to be a bit more cooperative 😂
from drivetest-ca-availabilities.
@skalitin @tn133 could you take a look at the new release I made and see if it fixes your issue?
from drivetest-ca-availabilities.
Closing as stale
from drivetest-ca-availabilities.
Related Issues (20)
- timeout exceeded while waiting for event? HOT 3
- Infinite scrolling HOT 4
- Instance exits immediately after logging in HOT 7
- Didn't go through G EXAM
- No dates written to terminal HOT 4
- Recaptch issue HOT 2
- Program opens then immediately shuts down, empty log HOT 1
- CLI Arguments not working with npm HOT 1
- Yarn start requesting to update new version HOT 1
- Checking your browser before accessing drivetest.ca. HOT 12
- Recaptcha issue HOT 1
- Incorrect results HOT 2
- Ability to keep checking more than once? HOT 5
- Hang after click login button HOT 4
- Location error HOT 9
- Latest version errors out HOT 4
- Unexpected token in JSON
- Invalid URLs
- Does not seem to work anymore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drivetest-ca-availabilities.