I was looking at API 500 on user creation if username is integer and can only kinda reproduce it, using
curl. I’m looking through the docs to see if there is a useful output to capture to assist in figuring out what is happening, and then remember
httpie as well…
And then I thought I’d just ping the @experts and ask if they would share tools and recipes they use to debug the API!
What do you use to troubleshoot and interact with the API?
In general, I am a huge fan of Postman. it helps to emulate API calls and their responses.
I generally use Insomnia or Postman for any API debugging (not just Discourse), I don’t really have any collections to share to speed that up for you though
That’s great, that’s what I’m looking for.
I also use insomnia to get through some wicked problems…
Oh, you meant https://insomnia.rest/!
(TIL: there is a
Hi @maiki, thanks for looking into this!
Here’s a CURL request you can use, which was generated from postman (if you’d like). This generates a 500:
curl --location --request POST 'https://XXX.com/users.json' \
--header 'Api-Key: XXX' \
--header 'Api-Username: XXX' \
--header 'Content-Type: application/json' \