Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

getting error : config file is not valid #183

Open
kiranchinta23 opened this issue Jan 8, 2025 · 5 comments
Open

getting error : config file is not valid #183

kiranchinta23 opened this issue Jan 8, 2025 · 5 comments

Comments

@kiranchinta23
Copy link

kiranchinta23 commented Jan 8, 2025

  # Load from environment secret to prevent personal info leaking
  # If you are using replit free plan, set this true
  # Then add your info to the secrets section
  loadFromEnv: false

  # if loadFromEnv is true, anything in personalInfo beside typeId is ignored
  firstName: 'g'
  lastName: 'm'
  # Date of birth (MM/DD/YYYY)
  dob: '08/11/1990'
  # Use real email to get appointment infomation
  email: 'g.m@gmail.com'
  # Not really needed but good to have a real one
  lastFourSSN: '0000'
  # If you want to recieve notificaion through phone, if not keep blank
  # WARNING: Use number only (Ex: 111111111)
  phoneNumber: ''

  # Serivce you needed at DPS. Check the full list on https://github.com/phamleduy04/texas-dps-scheduler/wiki/TypeId-list
  # If you need to apply for Texas DL you don't need to change it
  typeId: 71

location:
  # Search DPS Locations by City Name, if City name is given, zipCode is ignored.
  # If you don't want to search by city name, set it to ['']
  cityName: ['']
  # Zipcode of your location. Can add more DPS location by using ',' for multiple zipcode
  zipCode: ['75024']
  # Choose your DPS location by yourself when running the application if set to true
  pickDPSLocation: false
  # Get appointment from all DPS location by distance from the zipcode, will auto skip this when pickDPSLocation is true
  miles: 15
  # Put empty [''] for any day
  # DPS is closed on weekends, so you can't book on Saturday and Sunday
  preferredDays: ['Monday','Friday']
  # Put true/false without quotes if you want to book only same day appointment
  sameDay: false
  # Put how many day from today you want to book from start to end (7 is a good number)
  daysAround:
    ## Start date: start and end will start counting from this date
    # MM/DD/YYYY format, if blank will use current date
    # If the date input is invalid or in the past, the app will automatically use the current date as start date
    startDate: null
    start: 0
    end: 7
  # Put what time you want to book
  timesAround:
    # Number in 24h format, start = 6 and end = 18 means get appointment between 6 AM - 6 PM
    start: 6
    end: 18

appSettings:
  # Keep this empty, if it didnt work for you, use the wiki below to obtain one
  # https://github.com/phamleduy04/texas-dps-scheduler/wiki/How-to-get-Auth-Token
  authToken: ''
  # Put true/false without quotes if you want to cancel the appointment automatically if found existing appointment
  cancelIfExist: false
  # The time interval (in ms) the app will recheck for newer dates
  interval: 10000
  # Set this to true if you using replit, heroku or something equivalent
  webserver: false
  # Set this to higher if you encounter Header Timeout error. This one is in miliseconds
  headersTimeout: 30000 
  # How many times to retry if the request to DPS server failled
  maxRetry: 3
  # Read this for more infomation: https://github.com/phamleduy04/texas-dps-scheduler/wiki/Captcha-(Auth-Token)
  captcha:
    # Avaliable options: solver or browser
    strategy: 'browser'
    solverOptions:
      # Avaliable options: capsolver
      solverService: ''
      solverApiToken: ''
  # ntfy.sh push notification
  pushNotifcation:
    enabled: false
    baseURL: ''
    topicName: ''
    token: ''
@kiranchinta23
Copy link
Author

Screenshot 2025-01-07 at 6 26 48 PM

@coltonmccormack
Copy link

coltonmccormack commented Jan 8, 2025

You have an emoji for a phone number. This needs to be a real phone number, not an emoji.

Edit: I'm wrong, I thought that was a light pole but it appears to be a cursor inside of single quotes.

@phamleduy04
Copy link
Owner

What is the error beside config file is not valid? (It should tell you which part is invalid)

@chickenputty
Copy link

Not sure if this is related, but there is a current issue with the config where you need to comment out 'solverOptions', 'solverService', and 'solverApiToken' if you keep the default value of 'browser'.

image

@dalenmfitzgerald
Copy link

Not sure if this is related, but there is a current issue with the config where you need to comment out 'solverOptions', 'solverService', and 'solverApiToken' if you keep the default value of 'browser'.

image

Doesn't seem to work for me. I'm having the same issue

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants