Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support for (Remote) File Detector #122

Open
detro opened this Issue Dec 2, 2012 · 2 comments

Comments

Projects
None yet
3 participants
Owner

detro commented Dec 2, 2012

No description provided.

antimora commented Oct 4, 2013

Just want to confirm, I am getting an error when attempting to load a local file to a remote server via RemoteWebDriver.

PhantomJS version: 1.9.2
WebDriver Language: C#

File detector: driver.FileDetector = new LocalFileDetector ();

Client Error:

at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError (OpenQA.Selenium.Remote.Response errorResponse) [0x00000] in <filename unknown>:0 
  at OpenQA.Selenium.Remote.RemoteWebDriver.Execute (System.String driverCommandToExecute, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in <filename unknown>:0 
  at OpenQA.Selenium.Remote.RemoteWebDriver.InternalExecute (System.String driverCommandToExecute, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in <filename unknown>:0 
  at OpenQA.Selenium.Remote.RemoteWebElement.Execute (System.String commandToExecute, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in <filename unknown>:0 
  at OpenQA.Selenium.Remote.RemoteWebElement.UploadFile (System.String localFile) [0x00000] in <filename unknown>:0 
  at OpenQA.Selenium.Remote.RemoteWebElement.SendKeys (System.String text) [0x00000] in <filename unknown>:0 

Server Side Error:

[ERROR - 2013-10-04T02:38:04.139Z] RouterReqHand - _handle - Thrown => {
  "message": "Request => {\"headers\":{\"Accept\":\"application/json, image/png\",\"Connection\":\"keep-alive\",\"Content-Length\":\"1145211\",\"Content-Type\":\"application/json;charset=utf-8\",\"Host\":\"127.0.0.1:15975\"},\"httpVersion\":\"1.1\",\"method\":\"POST\",\"post\":\"{\\\"file\\\":\\\"UEsDBBQAAAAIAO16zEKKq5AeTBoNAMhNJQAOACQAQ0FCT0U0MDFBMi5wZGYKACAAAAAAAAEAGAAAAwN1u2fOAQBTLLmLwM4BAAMDdbtnzgHsnXlQk9caxnGJSLAVFBKopYYiiyzZE4KIUkAUFIiAC5sIEgUKRENAtFYUQYSCgldWUSEuFUGs3i5oa20YpVBBEFsVl4olWtQR1FYrUNqbRNvbGTOF9kjPd9LjH+IME2R+85zvnOe87/s9lkIPTwcWnU+2/K6z5QKZRWPSxJGx5OnTGYFrVooYi/0iY0XLpAx/UaI4SbJMlKj8hlAiXhYgktJCGMrP0hiBohQpjeEVH7FC5Pb8q/vzr15hDE9xglT5mTmiuGQaW/nD/Wco/zACkiKlqh/vKZbEM9zcxCkhTOX3HAV0AYvG4tA5vDCGT4RUEpNCC1H9Rkya+u8wxjxRwgppNM2Jo/6k6jeksRieMXFSkYThGRchFXmIlomjRDNmJEolooh4ckqZWZOc7OpqlHFzUW9R3OarrR9YipZVJKxJq0iPNN/W09Ze1nd3pmnjjxWmwb6SkIOhlltWf67Invf6mNw3T5HfmvFTjU3rruptV31yz23W99p9t++U7+HpbUE/kRK7KLvIooSo5/+P8l8qahzI9NgCFT1H9iD0uH+BHou8gWngcb7qZ/+d0dvfPLpgJJ+ykeRXnnawPCNlXRGz+YtNqf+JUezdMyYhOGxL/axqR/lD+6ZQ8sml7wWn8c53+lwyt26ufZ1hGGTseOjjwpOfTQk+N+X+L8lBlEMv
  ....


  ....

//wMAUEsBAi0AFAAAAAgA7XrMQoqrkB5MGg0AyE0lAA4AJAAAAAAAAACAAAAAAAAAAENBQk9FNDAxQTIucGRmCgAgAAAAAAABABgAAAMDdbtnzgEAUyy5i8DOAQADA3W7Z84BUEsFBgAAAAABAAEAYAAAAJwaDQAAAA==\\\"}\",\"url\":\"/file\",\"urlParsed\":{\"anchor\":\"\",\"query\":\"\",\"file\":\"file\",\"directory\":\"/\",\"path\":\"/file\",\"relative\":\"/file\",\"port\":\"\",\"host\":\"\",\"password\":\"\",\"user\":\"\",\"userInfo\":\"\",\"authority\":\"\",\"protocol\":\"\",\"source\":\"/file\",\"queryKey\":{},\"chunks\":[\"file\"]},\"urlOriginal\":\"/session/fc81a7d0-2c9d-11e3-9c59-db6ffd8ca2cf/file\"}\n    at :/ghostdriver/request_handlers/session_request_handler.js:183\n    at :/ghostdriver/request_handlers/request_handler.js:61\n    at :/ghostdriver/request_handlers/router_request_handler.js:78",
  "stackArray": [
    {
      "sourceURL": ":/ghostdriver/request_handlers/session_request_handler.js",
      "line": 183
    },
    {
      "sourceURL": ":/ghostdriver/request_handlers/request_handler.js",
      "line": 61
    },
    {
      "sourceURL": ":/ghostdriver/request_handlers/router_request_handler.js",
      "line": 78
    }
  ]
}

@ghost ghost assigned detro Jan 1, 2014

@saadtazi saadtazi referenced this issue in jmreidy/grunt-mocha-webdriver May 9, 2014

Closed

ECONNREFUSED on file upload #60

Any news on this ticket??

@detro detro added the help wanted label May 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment