# Forms API working perfectly on dev server but not on live

**URL:** <https://community.hubspot.com/t/forms-api-working-perfectly-on-dev-server-but-not-on-live/17018>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [November 1, 2019, 4:52pm UTC](https://community.hubspot.com/t/forms-api-working-perfectly-on-dev-server-but-not-on-live/17018 "2019-11-01T16:52:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MegaDaz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/megadaz/32/98942_2.png) [@MegaDaz](https://community.hubspot.com/u/MegaDaz)\
**Post date:** [November 1, 2019, 4:52pm UTC](https://community.hubspot.com/t/forms-api-working-perfectly-on-dev-server-but-not-on-live/17018/1 "2019-11-01T16:52:32Z")

</div>

Hello everyone,

We have a forms API working perfectly on our dev server e.g. all form fields submitting to HubSpot but when we move this to live ([https://glidegroup.co.uk/hyperfast-students](https://glidegroup.co.uk/hyperfast-students)) it stops working.

Form just returns the error - Sorry, something went wrong and we are not able to process your request. Please try again later.

Any advice and guidance would be much appreciated. HELP!

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [November 1, 2019, 11:57pm UTC](https://community.hubspot.com/t/forms-api-working-perfectly-on-dev-server-but-not-on-live/17018/2 "2019-11-01T23:57:52Z")

</div>

Hi @MegaDaz

Are you using an API Key for authentication or OAuth?

The API Key is ideal for testing your code from a Dev environment or Postman.

But, in Production you need to [use OAuth to authenticate](https://developers.hubspot.com/docs/methods/oauth2/oauth2-overview).

There’s [more info here](https://developers.hubspot.com/docs/overview).

Was that the issue?

Mike

---

<div class="post-metadata">

**Author:** ![MegaDaz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/megadaz/32/98942_2.png) [@MegaDaz](https://community.hubspot.com/u/MegaDaz)\
**Post date:** [November 4, 2019, 8:16am UTC](https://community.hubspot.com/t/forms-api-working-perfectly-on-dev-server-but-not-on-live/17018/3 "2019-11-04T08:16:56Z")

</div>

Thanks very much [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) - will investigate today.
