everettsouthwick/trusted-traveler-scheduler

Strange JSONDecodeError

Closed this issue · 5 comments

Describe the bug
Trying to run after setting up the config.json and installing all of the packages called out in the requirements.txt
Experienced the following traceback in the screenshot below

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 22H2
  • Python v3.10.11

Hello, could you share your config please? Block out any tokens in the "notification_urls" configuration option if you have them.

Hi, sure thing.

image

I currently haven't hooked it up to Discord yet but wondering if I could run this without it for now.

It looks like it is because 0411 in location_ids is not a valid integer because of the preceding 0. Are you sure that is a valid location id? You can take a look in LOCATIONS.md to see valid locations.

If 0411 is the location you need, you could try to wrap it in double quotes to make it a string like this:

  "location_ids": [ "0411" ],

I think you might be looking for 14681 - Bradley International Airport Enrollment Center. 0411 is the locationCode and it matches on the id which is 14681, not the locationCode

Ah I see. After you pointed it out, I forgot about the fact that it's an integer and not a string. Pulled the number from some other list and after looking at your locations.md it's different. Thanks!