I encountered a protocol error while attempting to retrieve a media stream using the getStream() function in my Puppeteer script. The error message indicates "Protocol error (Runtime.callFunctionOn): Promise was collected".
Error Message:Protocol error (Runtime.callFunctionOn): Promise was collected
Steps to Reproduce:
Launch Puppeteer with necessary configurations for media stream handling.
Navigate to a page where the media stream is available.
Attempt to retrieve the media stream using the getStream() function with { video: true, audio: true } options.
Expected Behavior:
The getStream() function should successfully retrieve the media stream without any errors.
Actual Behavior:
A protocol error occurs with the message "Protocol error (Runtime.callFunctionOn): Promise was collected".
I encountered a protocol error while attempting to retrieve a media stream using the getStream() function in my Puppeteer script. The error message indicates "Protocol error (Runtime.callFunctionOn): Promise was collected".
Code Snippet:
const stream = await getStream(page, { video: true, audio: true });
Error Message:
Protocol error (Runtime.callFunctionOn): Promise was collected
Steps to Reproduce: Launch Puppeteer with necessary configurations for media stream handling. Navigate to a page where the media stream is available. Attempt to retrieve the media stream using the getStream() function with { video: true, audio: true } options.
Expected Behavior: The getStream() function should successfully retrieve the media stream without any errors.
Actual Behavior: A protocol error occurs with the message "Protocol error (Runtime.callFunctionOn): Promise was collected".