TestProject Forum

Display device screen failed - cannot record

Hi, can someone help me? I try to record but get this error

2021-04-20 14:53:05.365 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-1 i.t.a.w.r.e.RecordingEndpoints           Received request to update recording session parameters
2021-04-20 14:53:05.367 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.w.r.e.RecordingEndpoints           Received request to update recording session parameters
2021-04-20 14:53:12.606 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-3 i.t.a.w.b.f                              MirroringSocket 9abdf3f3-8046-49e0-b22e-89efe09cf3a6 #5 disconnected: [1005] null
2021-04-20 14:53:12.613 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.w.r.e.DeviceInteractionEndpoints   Received request to set device orientation to PORTRAIT
2021-04-20 14:53:12.918 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-2 i.t.a.w.b.f                              MirroringSocket 56085127-10d9-4628-831b-c9fe0dabce00 #5 connected
2021-04-20 14:53:13.186 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.w.r.e.DeviceInteractionEndpoints   Received a request for device 5346e9eae6124d182cf45796dae8a5ad313c4117 screen mirroring
2021-04-20 14:53:13.734 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.i.n                                XCUITest is running on 5346e9eae6124d182cf45796dae8a5ad313c4117
2021-04-20 14:53:13.736 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.m.f.t                              Starting mirroring session for iOS device QA’s iPhone
2021-04-20 14:53:13.737 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.m.f.p                              Connecting to 5346e9eae6124d182cf45796dae8a5ad313c4117 frames socket via http://localhost:9100
2021-04-20 14:53:13.740 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-7 i.t.a.i.n                                XCUITest is running on 5346e9eae6124d182cf45796dae8a5ad313c4117
2021-04-20 14:53:18.258 zhG39qwXTkK_vlUMGoDVAg  ERROR 19052 qtp1916318708-7 i.t.a.m.f.t                              Failed starting iOS device 5346e9eae6124d182cf45796dae8a5ad313c4117 mirroring - failed connecting to frames socket
2021-04-20 14:53:18.259 zhG39qwXTkK_vlUMGoDVAg  ERROR 19052 qtp1916318708-7 i.t.a.w.r.m.AppExceptionMapper           io.testproject.java.exceptions.AppException: Application error occurred during the request processing, please try again
2021-04-20 14:53:18.318 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 qtp1916318708-8 i.t.a.w.b.f                              RecorderSocket fad696ff-6245-4820-a4ee-1ae160e60ebc #5 disconnected: [1005] null
2021-04-20 14:53:19.114 zhG39qwXTkK_vlUMGoDVAg  INFO  19052 rec-step-exec   i.t.a.b.a.d                              GET https://api.testproject.io/api/v1/agent/tokens?type=Recording&token=s6doSBy6-4WFiC5R7rAQypcPagOmOzF9wbjiV0RLZPc1 - 200 (NaD1l8mM): No Message

Hello,
Please try to update your agent to the latest version here
Also please try to use a different IPA to rule out it is your application that is causing the issue, try to use safari or calculator for example.
On your iOS device, go to Settings > Safari > Advanced and enable Web Inspector.
If all of the above did not work for you send the full logs to TestProject supprot.

Hi,
I submit the ticket with logs already.