# Http\_timeout in slack

**URL:** <https://forum.rasa.com/t/http-timeout-in-slack/35450>\
**Category:** Rasa Open Source\
**Created:** [October 5, 2020, 5:06am UTC](https://forum.rasa.com/t/http-timeout-in-slack/35450 "2020-10-05T05:06:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![\_adityaK](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/_adityak/32/10899_2.png) [@\_adityaK](https://forum.rasa.com/u/_adityaK)\
**Post date:** [October 12, 2020, 3:10pm UTC](https://forum.rasa.com/t/http-timeout-in-slack/35450/5 "2020-10-12T15:10:25Z")

</div>

@stephens, I tried using external event, but it still gives me the concurrent.futures.\_base.CancelledError error. Am I missing something here?

Also, when I run the same conversation using Twilio channel, it does not give me any error. Shouldn’t I get the same timeout issue with twilio too if this was Rasa timeout?

My file structure looks like:

domain.yml

```
intents:
- EXTERNAL_get_user_details

entities:
- name
- city

slots:
  name:
    type: unfeaturized
  city:
    type: unfeaturized

actions:
  - action_valid_file

response:
utter_user_details:
- text: "*Name:*\n{name} \n*City:*\n{city}"

```

data/rules.yml

```
rules:   
- rule: Fetch user details.
    steps:
      - intent: EXTERNAL_get_user_details
      - action: action_valid_file

```

stories.md:

```
* greet_user

    - action_valid_file

    - utter_user_details

    - user_info_form

    - form{"name":"user_info_form"}

    - form{"name":null}

```

actions.py:

```
class ActionForValidFile(Action):

    def name(self) -> Text:
        return "action_valid_file"

    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
        dispatcher.utter_message(**
            "Please wait while we fetch details from the user...")
        events = tracker.current_state()['events']
        base64_encode = convertPdfToBase64(base64_file_path) // API Call
        candidate_detail = get_details(base64_encode) // API Call
        slot_value = [
            SlotSet("name", candidate_detail['name']),
            SlotSet("city", candidate_detail['city'])
        ]
    return slot_value

```

Error:

> ```
> Traceback (most recent call last):
> File "/Users/adity/env/lib/python3.7/site-packages/rasa/core/processor.py", line 680, in _run_action
> events = await action.run(output_channel, nlg, tracker, self.domain)
> File "/Users/adity/env/lib/python3.7/site-packages/rasa/core/actions/action.py", line 612, in run
> json=json_body, method="post", timeout=DEFAULT_REQUEST_TIMEOUT
> File "/Users/adity/env/lib/python3.7/site-packages/rasa/utils/endpoints.py", line 151, in request
> **kwargs,
> File "/Users/adity/env/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
> self._resp = await self._coro
> File "/Users/adity/env/lib/python3.7/site-packages/aiohttp/client.py", line 504, in _request
> await resp.start(conn)
> File "/Users/adity/env/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 847, in start
> message, payload = await self._protocol.read() # type: ignore # noqa
> File "/Users/adity/env/lib/python3.7/site-packages/aiohttp/streams.py", line 591, in read
> await self._waiter
> concurrent.futures._base.CancelledError`
> connectors.slack_connector - Received retry #1 request from slack due to http_timeout.
> 
> ```

---

_[View the full topic](https://forum.rasa.com/t/http-timeout-in-slack/35450)._
