yume-chan/ya-webadb

get displays error

WQY916 opened this issue · 1 comments

WQY916 commented

Issue Checklist

Runtime

android 12 chrome 114

Device

SM-N9760 android 12

Describe the bug

After connecting to the device and entering the scrcpy page, when I need to mirror the secondary screen, I click the getdisplays,Fetch fails with error:

Error: Unexpected server output
    at tN.getDisplays (https://yume-chan.github.io/ya-webadb/_next/static/chunks/pages/scrcpy-39345687dbe67d84.js?__WB_REVISION__=39345687dbe67d84:1:55177)
    at async tk.getDisplays (https://yume-chan.github.io/ya-webadb/_next/static/chunks/pages/scrcpy-39345687dbe67d84.js?__WB_REVISION__=39345687dbe67d84:1:51733)
    at async Object.onClick (https://yume-chan.github.io/ya-webadb/_next/static/chunks/pages/scrcpy-39345687dbe67d84.js?__WB_REVISION__=39345687dbe67d84:1:66710)

In fact, if we know the id, we should be able to specify the display directly

Steps to reproduce

1.connecting to the device and entering the scrcpy page
2.click the getdisplays
3.report error

Thanks for your reporting!