# Creación de usuarios mediante RESTFUL Users API - Users.json fue borrado

**URL:** <https://meta.discourse.org/t/creating-users-through-restful-users-api-users-json-got-wiped/110362>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [28 Febrero, 2019 16:15 UTC](https://meta.discourse.org/t/creating-users-through-restful-users-api-users-json-got-wiped/110362 "2019-02-28T16:15:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ka0sdev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ka0sdev/32/132296_2.png) [@ka0sdev](https://meta.discourse.org/u/ka0sdev)\
**Post date:** [28 Febrero, 2019 17:11 UTC](https://meta.discourse.org/t/creating-users-through-restful-users-api-users-json-got-wiped/110362/5 "2019-02-28T17:11:55Z")

</div>

Well that explains it then 🙂

I am using the exact same code as I quoted in the OP, which yesterday gave following response:

```
{ success: true,
  active: true,
  message:
   'Thanks for signing up. We will notify you when your account has been approved.',
  user_id: 5 }

```

And today I’m faced with this;

```
{ FetchError: invalid json response body at <discourse-url>/users reason: Unexpected end of JSON input
    at C:\Users\ka0sdev\NodeRobot\node_modules\node-fetch\lib\index.js:241:32
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
  message:
   'invalid json response body at <discourse-url>/users reason: Unexpected end of JSON input',
  type: 'invalid-json' }

```

Which is strange seeing as I haven’t exactly changed the code one bit, obviously it was adapted to my Discourse, I have removed the URL because the site is not in production and I want to avoid crawlers finding it through this site.

I just validated the json being parsed and apparently it’s not valid either, this is kind of beyond me seeing as it worked yesterday 😑

I have reworked the payload to include double quotations, but still I get invalid-json.

---

_[View the full topic](https://meta.discourse.org/t/creating-users-through-restful-users-api-users-json-got-wiped/110362)._
