404 when trying to create an API key for system user

I am trying to create an API key for our ‘system’ user. When I click on Generate from the system user’s admin page, I get no key, and a 404 error appears in the console. There is no entry in the Discourse log.

https://<site_url>/admin/users/-1/generate_api_key Failed to load resource: the server responded with a status of 404 (Not Found)

I am able to generate API keys for other users.

I am running v1.4.0.beta9.

Can we repro this @sam? Could be legit.

It looks like a routing bug but has a very easy workaround.

Generate a global key and just pass the username system with the API call.

3 « J'aime »

Cela fonctionne maintenant en fait. Je pensais qu’il fallait utiliser l’option « tous les utilisateurs », mais vous pouvez désormais sélectionner « système » comme utilisateur et générer une clé uniquement pour l’utilisateur système.

3 « J'aime »