java-client icon indicating copy to clipboard operation
java-client copied to clipboard

Can i change timeout value when uploading recording video by remote path?

Open sejinik opened this issue 2 years ago • 0 comments

Description

now I'm using remote path to upload recording video. but, sometime exception occurs when uploading video

default value of timeout is 5000ms

so i wanna change timeout, how can i change this?

Environment

  • Java client build version or git revision if you use some snapshot: v7.5.1
  • Appium server version or git revision if you use some snapshot: v1.22.3
  • Desktop OS/version used to run Appium if necessary: Mac

Details

[debug] [W3C (abc86c7b)] Encountered internal error running command: Error: timeout of 5000ms exceeded [debug] [W3C (abc86c7b)] at createError (/usr/local/lib/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15) [debug] [W3C (abc86c7b)] at RedirectableRequest.handleRequestTimeout (/usr/local/lib/node_modules/appium/node_modules/axios/lib/adapters/http.js:280:16) [debug] [W3C (abc86c7b)] at RedirectableRequest.emit (node:events:513:28) [debug] [W3C (abc86c7b)] at Timeout._onTimeout (/usr/local/lib/node_modules/appium/node_modules/follow-redirects/index.js:166:12) [debug] [W3C (abc86c7b)] at listOnTimeout (node:internal/timers:564:17) [debug] [W3C (abc86c7b)] at processTimers (node:internal/timers:507:7) [HTTP] <-- POST /wd/hub/session/abc86c7b-99a8-4806-9f52-b5e86fa8e8dc/appium/stop_recording_screen 500 6710 ms - 549

Code To Reproduce Issue [ Good To Have ]

Please remember: it's easier to reproduce and fix the bug with sample code. You can git clone https://github.com/appium/appium/tree/master/sample-code or https://github.com/appium/appium/tree/master/sample-code/apps and reproduce an issue using Java and sample apps. Also you can create a gist with pasted java code sample or put it here using markdown. About markdown please read Mastering markdown and Writing on GitHub

Exception Stacktraces

Please create a gist with the pasted stacktrace of the exception thrown by java.

Link To Appium Logs

Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.

sejinik avatar Jan 25 '23 05:01 sejinik