# Custom relation recipe

**URL:** <https://support.prodi.gy/t/custom-relation-recipe/5123>\
**Category:** Uncategorized\
**Tags:** usage, front-end, relations\
**Created:** [December 23, 2021, 7:14am UTC](https://support.prodi.gy/t/custom-relation-recipe/5123 "2021-12-23T07:14:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aisha\_harbi](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@aisha\_harbi](https://support.prodi.gy/u/aisha_harbi)\
**Post date:** [December 23, 2021, 7:14am UTC](https://support.prodi.gy/t/custom-relation-recipe/5123/1 "2021-12-23T07:14:00Z")

</div>

Hello,  
Essentially I'm trying to use an NER model to annotate and generate spans and included simple logic to generate relations, the final output of the recipe is the following:

```python
{ "text": "I like cute cats", 

  "tokens": [ 

    {"text": "I", "start": 0, "end": 1, "id": 0}, 

    {"text": "like", "start": 2, "end": 6, "id": 1}, 

    {"text": "cute", "start": 7, "end": 11, "id": 2}, 

    {"text": "cats", "start": 12, "end": 16, "id": 3} ], 

  "relations": 

    { 

   "head": 8, "head_span": {"start": 38, "end": 41, "token_start": 8, "token_end": 8, "label": null}, 

   "child": 0, "child_span": {"start": 0, "end": 5, "token_start": 0, "token_end": 0, "label": "PERSON"}, 

   "label": "COREF", 

} 

}

```

but once I start the server the UI gives me an oops something went wrong message and console says the following:

```python
Failed to load resource: the server responded with a status of 403 (Forbidden)
bundle.js:1 Uncaught (in promise) Error: [object Object]
    at bundle.js:1
    at bundle.js:1
    at dispatch (bundle.js:1)
    at bundle.js:1

```

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [December 24, 2021, 1:12pm UTC](https://support.prodi.gy/t/custom-relation-recipe/5123/2 "2021-12-24T13:12:54Z")

</div>

Hi! The fact that the error from the server is `403 (Forbidden)` might indicate that something is wrong with the permissions/access of the web server and not Prodigy directly. Did you previously run the Prodigy server successfuly and if so, did you change anything recently? Are you using a different port or are you serving Prodigy behind a reverse proxy?

---

<div class="post-metadata">

**Author:** ![aisha\_harbi](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@aisha\_harbi](https://support.prodi.gy/u/aisha_harbi)\
**Post date:** [December 27, 2021, 5:12pm UTC](https://support.prodi.gy/t/custom-relation-recipe/5123/3 "2021-12-27T17:12:54Z")

</div>

Thanks!
