# Module making duplicate API entries

**URL:** <https://forum.inductiveautomation.com/t/module-making-duplicate-api-entries/45756>\
**Category:** Module Development\
**Created:** [April 19, 2021, 2:46pm UTC](https://forum.inductiveautomation.com/t/module-making-duplicate-api-entries/45756 "2021-04-19T14:46:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bebel](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bebel](https://forum.inductiveautomation.com/u/bebel)\
**Post date:** [April 19, 2021, 2:46pm UTC](https://forum.inductiveautomation.com/t/module-making-duplicate-api-entries/45756/1 "2021-04-19T14:46:50Z")

</div>

I’m using an API from eMaint to create wo requests over the internet. The purpose is to force the code to run on the gateway so that we can create requests from a client running on a separate network that does not have internet access. It works just fine except that it always creates two requests. This is true when running in the designer or even a client on the other network (when the client does not have direct internet access). I have been looking for a mistake in the way I use the rpc but I’m not sure I would know the problem when I saw it. Is there something specific I should look for?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 19, 2021, 4:52pm UTC](https://forum.inductiveautomation.com/t/module-making-duplicate-api-entries/45756/2 "2021-04-19T16:52:43Z")

</div>

Without your code it’s basically impossible to offer useful advice.  
Do logging on the gateway side of things, maybe in the constructor for your RPC class, to see how often things are being called.

---

<div class="post-metadata">

**Author:** ![bebel](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bebel](https://forum.inductiveautomation.com/u/bebel)\
**Post date:** [April 19, 2021, 8:48pm UTC](https://forum.inductiveautomation.com/t/module-making-duplicate-api-entries/45756/3 "2021-04-19T20:48:27Z")

</div>

Thank-you, that helped guide me to the problem.
