hey there!
I’m using uppy companion in my existing node js server for getting files into my server from dropbox/instagram/google drive.
The companion is set correctly with port 3020 and my domain name (checked).
The Error I get is: [CompanionClient] unable to make preflight request TypeError: Failed to fetch.
OPTIONS https://<my_domain>.com:3020/dropbox/list/ net::ERR_CONNECTION_TIMED_OUT
In my computer it works with localhost as a companion and domain server as client but only when I put my public ip of the domain.
As I said, it does not work only with my remote domain…any help?
Well, I added cors to my server, and added the res.setHeader(“Access-Control-Expose-Headers”, “Access-Control-Allow-Headers”);
which was missing, but the error still occurs. there is any special order that I might notice to?
actually this gives an impression that your browser is unable to connect to the server when making that request. Can you check the network tab on your browser to see the details of the request?
Hey Alon, how you doing?
I’m having the same issue you had a year ago.
I would like to know what did you do to make it work.
I set cors in my node server and set all the headers too, and I’m still getting this errors.
I think this is generating an error in companion: companion: 2020-08-06T13:04:44.744Z [error] upload.multipart.error upload failed with status: 400
But I don’t know how to fix it.
I would love any help.
Tks