# How to fix this error while calling registration api in Open edX tutor

**URL:** <https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578>\
**Category:** Tutor Help\
**Tags:** how-to, tutor\
**Created:** [November 2, 2023, 5:11am UTC](https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578 "2023-11-02T05:11:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul.bhaskar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rahul.bhaskar](https://discuss.openedx.org/u/rahul.bhaskar)\
**Post date:** [November 2, 2023, 5:11am UTC](https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578/1 "2023-11-02T05:11:28Z")

</div>

{ “error\_code”: “forbidden-request” } @mafermazu @regis

---

<div class="post-metadata">

**Author:** ![mafermazu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/mafermazu/32/2641_2.png) [@mafermazu](https://discuss.openedx.org/u/mafermazu)\
**Post date:** [November 2, 2023, 7:41pm UTC](https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578/2 "2023-11-02T19:41:47Z")

</div>

Hello @rahul.bhaskar  
Can you give us a clear and concise description of the bug you are having? How do we reproduce it? What is the expected behavior? And more context if necessary.

---

<div class="post-metadata">

**Author:** ![rahul.bhaskar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rahul.bhaskar](https://discuss.openedx.org/u/rahul.bhaskar)\
**Post date:** [November 3, 2023, 10:18am UTC](https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578/3 "2023-11-03T10:18:03Z")

</div>

we are using olive version it will not support the enrollment allow api

---

<div class="post-metadata">

**Author:** ![rahul.bhaskar](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rahul.bhaskar](https://discuss.openedx.org/u/rahul.bhaskar)\
**Post date:** [November 27, 2023, 7:04am UTC](https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578/4 "2023-11-27T07:04:37Z")

</div>

I dont know actually its like my ip is blocked by openedx if I try to access same api with same post data from localhost its working.

---

<div class="post-metadata">

**Author:** ![mafermazu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/mafermazu/32/2641_2.png) [@mafermazu](https://discuss.openedx.org/u/mafermazu)\
**Post date:** [November 27, 2023, 11:20pm UTC](https://discuss.openedx.org/t/how-to-fix-this-error-while-calling-registration-api-in-open-edx-tutor/11578/5 "2023-11-27T23:20:03Z")

</div>

I’m happy that it worked. Can you mark your post as a solution? Or do you have another question about this? Please remember to provide the full context to help you with your questions 🙌
