Skip to content

Uppy uploader is not able to upload files using url provider. #1581

@dioniciodiaz

Description

@dioniciodiaz

I was testing the uppy url and the google driver providers with the companion server that is in your examples (https://github.com/transloadit/uppy/blob/master/examples/uppy-with-companion/server/index.js). The package version was

"@uppy/companion": "^1.0.2".
 // in the front end i was using the following pluggins:
"@uppy/core": "1.0.1",
"@uppy/dashboard": "1.0.1",
"@uppy/file-input": "1.0.1",
"@uppy/google-drive": "1.0.1",
"@uppy/url": "1.0.1",
"@uppy/xhr-upload": "1.0.1",

It seems that when the request sent by the dashboard hits companion. Companion tryes to send the files to my backend but it fails.

uppy: 2019-05-21T19:30:57.976Z [debug]  URL file import handler running
uppy: 2019-05-21T19:31:35.190Z [debug]  URL file import handler running
uppy: 2019-05-21T19:31:35.725Z [debug]  Instantiating uploader.
uppy: 2019-05-21T19:31:35.729Z [debug]  Waiting for socket connection before beginning remote download.
uppy: 2019-05-21T19:31:35.736Z [debug] uploader.socket.wait a8589d1a waiting for connection
uppy: 2019-05-21T19:31:36.220Z [info] socket.connect connection received from a8589d1a-e34f-49c5-90e0-970cb62f97f3
uppy: 2019-05-21T19:31:36.223Z [debug]  Socket connection received. Starting remote download.
uppy: 2019-05-21T19:31:36.520Z [debug] uploader.download.progress a8589d1a 8186 bytes
uppy: 2019-05-21T19:31:36.522Z [debug] uploader.illusive.progress a8589d1a 0 4093 8186
uppy: 2019-05-21T19:31:36.523Z [debug] uploader.upload.progress a8589d1a 4093 8186 50.00%
\Projects\companion-test\node_modules\delayed-stream\lib\delayed_stream.js:33
  source.on('error', function() {});
         ^

TypeError: source.on is not a function
    at Function.DelayedStream.create (\Projects\companion-test\node_modules\delayed-stream\lib\delayed_stream.js:33:10)
    at FormData.CombinedStream.append (\Projects\companion-test\node_modules\combined-stream\lib\combined_stream.js:45:37)
    at FormData.append (\Projects\companion-test\node_modules\form-data\lib\form_data.js:74:3)
    at appendFormValue (\Projects\companion-test\node_modules\request\request.js:323:21)
    at Request.init (\Projects\companion-test\node_modules\request\request.js:334:11)
    at new Request (\Projects\companion-test\node_modules\request\request.js:128:8)
    at request (\Projects\companion-test\node_modules\request\index.js:53:10)
    at Function.post (\Projects\companion-test\node_modules\request\index.js:61:12)
    at Uploader.uploadMultipart (\Projects\companion-test\node_modules\@uppy\companion\lib\server\Uploader.js:341:17)
    at WriteStream.writeStream.on (\Projects\companion-test\node_modules\@uppy\companion\lib\server\Uploader.js:151:26)

Metadata

Metadata

Labels

BugCompanionThe auth server (for Instagram, GDrive, etc) and upload proxy (for S3)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions