Creating users through RESTFUL Users API - Users.json got wiped

Well that explains it then :slight_smile:

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 :expressionless:

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