options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=C:\\Users\\jack_l\\AppData\\Local\\Google\\Chrome\\User Data")
options.add_argument(r'--profile-directory=Profile 8')
driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
I'm getting the Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token.
error at the driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
line. I found another post saying they fixed the problem by deleting their entire Chrome folder and reinstalling (Python Selenium Chrome - Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token), but would anyone else know an alternative to that? And just out of curiosity; what would deleting the chrome folder do anyway (my chrome accounts are synced)
This error popped out of no where btw, like the program was running fine this morning, then i boot it up again a few hours later and I get this (I havent changed anything).
Full Error:
Exception has occurred: WebDriverException
Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token.
Stacktrace:
Backtrace:
Ordinal0 [0x00A7B8F3+2406643]
Ordinal0 [0x00A0AF31+1945393]
Ordinal0 [0x008FC748+837448]
Ordinal0 [0x0091B4CF+963791]
Ordinal0 [0x0091B7C5+964549]
Ordinal0 [0x009192B6+955062]
Ordinal0 [0x00915D71+941425]
Ordinal0 [0x00948EE0+1150688]
Ordinal0 [0x00948B3A+1149754]
Ordinal0 [0x00944096+1130646]
Ordinal0 [0x0091E636+976438]
Ordinal0 [0x0091F546+980294]
GetHandleVerifier [0x00CE9612+2498066]
GetHandleVerifier [0x00CDC920+2445600]
GetHandleVerifier [0x00B14F2A+579370]
GetHandleVerifier [0x00B13D36+574774]
Ordinal0 [0x00A11C0B+1973259]
Ordinal0 [0x00A16688+1992328]
Ordinal0 [0x00A16775+1992565]
Ordinal0 [0x00A1F8D1+2029777]
BaseThreadInitThunk [0x75F4FA29+25]
RtlGetAppContainerNamedObjectPath [0x77657A7E+286]
RtlGetAppContainerNamedObjectPath [0x77657A4E+238]
File "C:\Users\jack_l\Documents\BEATSTARS_PYTHON_SELENIUM\uploadToBeatstars.py", line 34, in <module>
driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
I managed to get it up and running again! The solution that worked for me was deleting C:\Users\USER\AppData\Local\Google\Chrome folder and reinstalling Chrome. If you run into this problem, give it a try.