# Trouble with connecting ElasticSearh and Dropbox

**URL:** <https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837>\
**Category:** Elastic Search\
**Tags:** elastic-workplace-search\
**Created:** [January 12, 2021, 1:53pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837 "2021-01-12T13:53:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![avetik](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@avetik](https://discuss.elastic.co/u/avetik)\
**Post date:** [January 12, 2021, 1:53pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/1 "2021-01-12T13:53:51Z")

</div>

Hello.

My name is Avetik.  
Now i have one trouble with connecting ElasticSearh and Dropbox.

I don`t understand what is need to be input in this window.  
 ![image (4)](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b093983d03519cf815356730d6d539745cf76b5.png)

I also can not understand this explanation:

 ![image (5)](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e36d1ffa3f02c3cd97f6893da2b27ddb0430336.png)

Сan you please help me with this case?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 12, 2021, 3:27pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/2 "2021-01-12T15:27:14Z")

</div>

Welcome!

Where's your workplace search instance running? What is its url?

---

<div class="post-metadata">

**Author:** ![avetik](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@avetik](https://discuss.elastic.co/u/avetik)\
**Post date:** [January 12, 2021, 3:59pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/3 "2021-01-12T15:59:37Z")

</div>

I don`t know.  
How can i find out?

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [January 12, 2021, 5:19pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/4 "2021-01-12T17:19:44Z")

</div>

When you login to Workplace Search, you have to enter the URL in your browser. If you launched via Elastic Cloud and you just clicked a link to go to Workplace Search, you can grab the hostname from your browser's URL bar.

---

<div class="post-metadata">

**Author:** ![avetik](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@avetik](https://discuss.elastic.co/u/avetik)\
**Post date:** [January 13, 2021, 10:22am UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/5 "2021-01-13T10:22:21Z")

</div>

I launch via Elastic Cloud and I just click a link to go to Workplace Search.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/2/2258c620d800ca593070eb93db7875f9dd67ce9c.png)

Would i grab this hostname from my browser's URL bar?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d95ef0f742177756a4725a1f2667556dd46483d.png)

In this case, the following error appears

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7fbff6254366a34e4851693ee3b85ea639bc923e.png)

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [January 13, 2021, 3:44pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/6 "2021-01-13T15:44:04Z")

</div>

@avetik thanks for the screenshots, I can see what's going wrong.

I think you've misunderstood what a "hostname" is, and how to get it from a URL. You can read about the various parts of a URL [here in the wikipedia article](https://en.wikipedia.org/wiki/URL#Syntax). In our [dropbox documentation](https://www.elastic.co/guide/en/workplace-search/current/workplace-search-dropbox-connector.html), in Step 5, we specify:

```auto
Within OAuth 2 and Redirect URIs, add the following two redirect URIs, substituting <WS_BASE_URL> with the base URL at which Workplace Search is hosted (scheme + host, no path).

<WS_BASE_URL>/ws/org/sources/dropbox/create
<WS_BASE_URL>/ws/sources/dropbox/create

Examples:

# Deployment using a custom domain name
https://www.example.com/ws/org/sources/dropbox/create
https://www.example.com/ws/sources/dropbox/create

# Deployment using a default Elastic Cloud domain name
https://8905d44eb30e4d56a1acc41bde14c847.ent-search.us-east-1.aws.cloud.es.io/ws/org/sources/dropbox/create
https://8905d44eb30e4d56a1acc41bde14c847.ent-search.us-east-1.aws.cloud.es.io/ws/sources/dropbox/create

```

The key bit there is `(scheme + host, no path)`. From the error that Dropbox is giving, it looks like you've included the "path", which in this case would have been `/ws#/org`.

Let us know if you run into other issues. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 10, 2021, 3:44pm UTC](https://discuss.elastic.co/t/trouble-with-connecting-elasticsearh-and-dropbox/260837/7 "2021-02-10T15:44:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
