# Unable to make requests through Python code given in the sample

**URL:** <https://community.rapyd.net/t/unable-to-make-requests-through-python-code-given-in-the-sample/549>\
**Category:** 🙋🏽‍♀️🙋🏽‍♂️ Ask Questions\
**Tags:** disburse-api, get-started\
**Created:** [June 26, 2021, 8:09am UTC](https://community.rapyd.net/t/unable-to-make-requests-through-python-code-given-in-the-sample/549 "2021-06-26T08:09:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Om\_Divyatej](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/om_divyatej/32/989_2.png) [@Om\_Divyatej](https://community.rapyd.net/u/Om_Divyatej)\
**Post date:** [June 26, 2021, 8:09am UTC](https://community.rapyd.net/t/unable-to-make-requests-through-python-code-given-in-the-sample/549/1 "2021-06-26T08:09:49Z")

</div>

I am using the code given in the documentation to get started.  
[https://docs.rapyd.net/build-with-rapyd/reference/code-samples](https://docs.rapyd.net/build-with-rapyd/reference/code-samples)

Now , when I try to use the make\_request() , it returns an error of 404. I have already provided the access and secret key.

I am trying to :  
make\_request(‘get’, ‘/payment\_methods/country?country=CR’)

Error: TypeError: (\<Response [401]\>, ‘get’, ‘[https://sandboxapi.rapyd.net/payment\_methods/country?country=CR](https://sandboxapi.rapyd.net/payment_methods/country?country=CR)’)

Please help.

---

<div class="post-metadata">

**Author:** ![yairs](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/yairs/32/857_2.png) [@yairs](https://community.rapyd.net/u/yairs)\
**Post date:** [April 5, 2022, 10:58am UTC](https://community.rapyd.net/t/unable-to-make-requests-through-python-code-given-in-the-sample/549/2 "2022-04-05T10:58:14Z")

</div>

Hi @Om_Divyatej,

We’ve just launched our samples on Github, you can access them [here](https://github.com/Rapyd-Samples)
