Code Monkey home page Code Monkey logo

Comments (6)

tn133 avatar tn133 commented on August 16, 2024 1

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.

skalitin avatar skalitin commented on August 16, 2024

scraper.js:203:64 is this line:

Number(new URLSearchParams(bookingDateResponse.url().split("?").pop()).get("month")) - 1;

from drivetest-ca-availabilities.

skalitin avatar skalitin commented on August 16, 2024

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.

silverAndroid avatar silverAndroid commented on August 16, 2024

Will try and investigate this issue once the website decides to be a bit more cooperative 😂

from drivetest-ca-availabilities.

silverAndroid avatar silverAndroid commented on August 16, 2024

@skalitin @tn133 could you take a look at the new release I made and see if it fixes your issue?

from drivetest-ca-availabilities.

silverAndroid avatar silverAndroid commented on August 16, 2024

Closing as stale

from drivetest-ca-availabilities.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.