# ERROR companion integration with my domain

**URL:** <https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012>\
**Category:** Uppy\
**Created:** [August 9, 2019, 9:47am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012 "2019-08-09T09:47:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Alon](https://community.transloadit.com/u/Alon)\
**Post date:** [August 9, 2019, 9:47am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/1 "2019-08-09T09:47:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ifedapoolarewaju](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ifedapoolarewaju/32/36_2.png) [@ifedapoolarewaju](https://community.transloadit.com/u/ifedapoolarewaju)\
**Post date:** [August 11, 2019, 8:27am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/2 "2019-08-11T08:27:50Z")

</div>

Please see this github comment on how to fix this issue [https://github.com/transloadit/uppy/pull/1612#issuecomment-515117137](https://github.com/transloadit/uppy/pull/1612#issuecomment-515117137)

---

<div class="post-metadata">

**Author:** ![Alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Alon](https://community.transloadit.com/u/Alon)\
**Post date:** [August 11, 2019, 8:58am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/3 "2019-08-11T08:58:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ifedapoolarewaju](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ifedapoolarewaju/32/36_2.png) [@ifedapoolarewaju](https://community.transloadit.com/u/ifedapoolarewaju)\
**Post date:** [August 11, 2019, 9:04am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/4 "2019-08-11T09:04:12Z")

</div>

> [@Alon](#):
>
> net::ERR\_CONNECTION\_TIMED\_OUT

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?

---

<div class="post-metadata">

**Author:** ![Alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Alon](https://community.transloadit.com/u/Alon)\
**Post date:** [August 11, 2019, 9:08am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/5 "2019-08-11T09:08:31Z")

</div>

Sure, it says: 1.  
Request URL: [https://my](https://my) [domain.com:3020/dropbox/list/](http://domain.com:3020/dropbox/list/)

1. Referrer Policy:

no-referrer-when-downgrade

1. Request Headers

2. Provisional headers are shown

3. Access-Control-Request-Headers:

content-type,uppy-auth-token

1. Access-Control-Request-Method:

GET

1. Origin:

[http://public](http://public) ip of my domain

1. Referer:

[http://ip](http://ip) of my domain//htmls/upload.html

1. User-Agent:

Mozilla/5.0 (iPad; CPU OS 11\_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) Version/11.0 Mobile/15A5341f Safari/604.1

---

<div class="post-metadata">

**Author:** ![ifedapoolarewaju](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ifedapoolarewaju/32/36_2.png) [@ifedapoolarewaju](https://community.transloadit.com/u/ifedapoolarewaju)\
**Post date:** [August 11, 2019, 9:12am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/6 "2019-08-11T09:12:41Z")

</div>

what version of companion are you running? Also what version of @uppy/companion-client are you using?

---

<div class="post-metadata">

**Author:** ![Alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Alon](https://community.transloadit.com/u/Alon)\
**Post date:** [August 11, 2019, 10:02am UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/7 "2019-08-11T10:02:22Z")

</div>

```
"@uppy/companion": "^1.3.0",

"@uppy/core": "^1.2.0",

"@uppy/companion-client : "1.2.0"
```

---

<div class="post-metadata">

**Author:** ![Alon](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Alon](https://community.transloadit.com/u/Alon)\
**Post date:** [August 13, 2019, 5:40pm UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/8 "2019-08-13T17:40:45Z")

</div>

![uppy%20error](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/26c819444a3446529ac401f00e55f91657eda59e.png)

---

<div class="post-metadata">

**Author:** ![tomas.gomes](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@tomas.gomes](https://community.transloadit.com/u/tomas.gomes)\
**Post date:** [August 6, 2020, 1:12pm UTC](https://community.transloadit.com/t/error-companion-integration-with-my-domain/15012/9 "2020-08-06T13:12:45Z")

</div>

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

Tomás
