# Custom Database Create Method Returns Error no matter what is in the method

**URL:** <https://community.auth0.com/t/custom-database-create-method-returns-error-no-matter-what-is-in-the-method/14203>\
**Category:** Get Help\
**Created:** [August 10, 2018, 3:45pm UTC](https://community.auth0.com/t/custom-database-create-method-returns-error-no-matter-what-is-in-the-method/14203 "2018-08-10T15:45:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noliver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noliver/32/13374_2.png) [@noliver](https://community.auth0.com/u/noliver)\
**Post date:** [August 10, 2018, 3:45pm UTC](https://community.auth0.com/t/custom-database-create-method-returns-error-no-matter-what-is-in-the-method/14203/1 "2018-08-10T15:45:19Z")

</div>

Setting up a custom database connection and trying to implement the Create method. No matter what I put in the Create method I get an [Error] Unexpected end of JSON input error.

If simply returning the callback with null (the success state) returns the error.

 ![image](https://global.discourse-cdn.com/auth0/original/2X/4/4ca221ef5edd44acc2d676d5593ed7c5b8f29841.png)

 ![image](https://global.discourse-cdn.com/auth0/original/2X/f/fc9b8505bd5b7f0ddafb11772a6882e5b7cd608b.png)

---

<div class="post-metadata">

**Author:** ![noliver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noliver/32/13374_2.png) [@noliver](https://community.auth0.com/u/noliver)\
**Post date:** [August 10, 2018, 4:12pm UTC](https://community.auth0.com/t/custom-database-create-method-returns-error-no-matter-what-is-in-the-method/14203/2 "2018-08-10T16:12:46Z")

</div>

Turns out this was because the GetUser call was failing first

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 10:32am UTC](https://community.auth0.com/t/custom-database-create-method-returns-error-no-matter-what-is-in-the-method/14203/3 "2018-12-17T10:32:03Z")

</div>


