I have a small program that daily does some work on the groups of my Discourse installation, and to do that it starts by fetching all the groups using the json API:
GET https://disc.uaar.it/admin/groups.json?api_key=xxxx&api_username=xxx
Suddenly a few days ago this call stopped working. Now I get a 200 response code (the login is OK, and there is no error in the logs), but the response is empty and its content type is text/plain.
I’m running v1.9.0.beta5 +8, but I cannot check if this happened at the same time as an upgrade, because the system admin is on vacation
It’s very rare to modify routes like that, but since we had a lot of new stuff around groups, this route was needed for normal users and had to be moved from /admin scope.
Le fichier Postman partagé par Discourse présente quelques problèmes dans les paramètres de configuration et les en-têtes.
J’ai finalement réussi à le faire fonctionner en activant l’option « accorder les permissions » pour l’utilisateur dans l’interface des paramètres de Discourse et en ajoutant des en-têtes comme ceci :