capsolver-browser-extension icon indicating copy to clipboard operation
capsolver-browser-extension copied to clipboard

Configuration file is not read apikey etc

Open Ahnafudin opened this issue 1 year ago • 3 comments

I configured the config.js file on the latest version of CapSolver.Browser.Extension-chrome-v1.11.0 and it doesn't read the apikey on the chrome extension

However, I tried using the CapSolver.Browser.Extension-v.1.7.1 version in the config.json file and it read the apikey on the chrome extension

Maybe the file that connects config.js to the latest file has an error?

Ahnafudin avatar Mar 16 '24 07:03 Ahnafudin

solution is to add newline ='\n' when write to a file. like this with open(path, 'w', encoding='utf-8',newline='\n') as f:

sergio-itru avatar Apr 27 '24 01:04 sergio-itru

For anyone coming here later, there is already an issue opened here. Here is my workaround: https://github.com/capsolver/capsolver-browser-extension/issues/5#issuecomment-1963554168. It won't show the API key in the extension, but it will still solve the issue. Also, the API key to add in my-content-script.js can be find by this: manualSolving:!1,apiKey:"",appId:""

ducklin404 avatar May 11 '24 04:05 ducklin404