Closed toto1515 closed 2 years ago
Do you keep the command prompt opened when you open the sidebar? Can you see a directory list through visiting http://localhost:8080 in a new browser tab?
If not, it's likely that your device has another service listening to port 8080, and you have to specify another port (or shutdown the conflicting service) to prevent a conflict.
Hello, yes, i keep the command prompt opened when i open the sidebar. so, i try to visit the directory list through visiting http://localhost:8080/ in a new browser tab and it shows the right directory. Then, i tried the 'Open scrapbook' command and a new window appear with the correct view of the directory. All seem to work fine, capturing and browsing is Ok. But i notice that if i close the 'http://localhost:8080/' Tab, it does not work. If i re-open a 'http://localhost:8080/' Tab, scrapbook works.
Another test : i try with http://localhost:8000/ and the same results occur, http://localhost:8000/' Tab must be present in the tabs list for scrapbook to work.
That's strange, isn't it? Thanks in advance for your help.
But i notice that if i close the 'http://localhost:8080/' Tab, it does not work. If i re-open a 'http://localhost:8080/' Tab, scrapbook works.
This is unexpected. Connection to the backend should work regardless of whether a tab visiting the backend is opened.
What is the version of your OS, browser, WebScrapBook and PyWebScrapBook?
Do you see any error or warning in the commnd prompt when you operate the sidebar without a tab opened?
Do you have other extensions installed? Try disabling all other extensions (or open a new user profile) and check if the same issue still happens.
Hello, i try to restart my computer, start 'serve.py' and launch Chrome (i use http://localhost:8000/) All is working know. The only thing i did before, is to modify 'config.ini' in the .wsb folder, changing: [server] ; port = ; host = to [server] port = 8000 host = localhost
Thanks again for your help
Hello, I try to use Webscrapbook with sidebar. I install python 3.8.5 I install pywebscrapbook python -m pip install -U webscrapbook i start backend server in a folder: E:\WebScrapBook>wsb config -ba Generating ".wsb\config.ini"... Generating ".wsb\serve.py"... Generating ".wsb\app.py"...
E:\WebScrapBook>wsb serve WebScrapBook server starting up... Document Root: E:\WebScrapBook Listening on http://localhost:8080 Hit Ctrl-C to shutdown.
in the options, i select http://localhost:8080 for the backend server i set Save captured data to: Backend server
but when i try to 'capture a tab', or 'open scrapbook', i get a message 'Backend initilization error: Unable to connect to backend server.'
Can you tell me what is wrong? Thanks