# Problem with requests in Python3 and Flask

**URL:** <https://discuss.python.org/t/problem-with-requests-in-python3-and-flask/24173>\
**Category:** Python Help\
**Tags:** help\
**Created:** [February 23, 2023, 11:44am UTC](https://discuss.python.org/t/problem-with-requests-in-python3-and-flask/24173 "2023-02-23T11:44:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Alan](https://discuss.python.org/u/Alan)\
**Post date:** [February 23, 2023, 11:44am UTC](https://discuss.python.org/t/problem-with-requests-in-python3-and-flask/24173/1 "2023-02-23T11:44:52Z")

</div>

Hi,  
I have 2 API RESTS, one is the shop and another one is the storage, each one execute in a different port, everything is in localhost. I use an api key to make crud, no authorized user cannot make crud or get information from my database. From shop to Storage, I do not have problem, the problem is if I am in shop and I make a requests.get(url, header=header) in a route from my shop, I am passing my api key, but the error message is about connection, the server is refusing the connection, I tried to disable my firewall from windows and no way. Why can I make request from one API to another but not inside from the same API ? What should I do please ? Sorry I am new with python…

Thanks
