pyppeteer exception handling ValueError: signal only works in main thread

The program needs to run pyppeteer in a thread and the result is the following information

Solution

Add these three fields when creating the browser object

'handleSIGINT':False,
'handleSIGTERM': False,
'handleSIGHUP': False,

See also: https://stackoverflow.com/questions/53679905/running-pypupeteer-in-flask-gives-valueerror-signal-only-works-in-main-thread?r=SearchResults

Guess you like

Origin blog.csdn.net/weixin_41822224/article/details/103719863