hi, I have been unable to generate the API key.
AI-generated summary
The issue revolves around a failure to generate an API key in the Theme Creator, resulting in a 500 error. MihirR explains that a 500 error typically indicates a server-side problem, suggesting checking logs or restarting the app, though these actions are not accessible to regular users. Moin clarifies that only the Discourse team can access logs and that the Theme Creator’s customizations may be causing the issue. MihirR acknowledges the limitation and asks for a fix, while Lilly confirms the report will be reviewed. David links the issue to a recent PR and seeks input on updating the code. Angus submits a fix, which is then merged and deployed by David.
A 500 error usually means something’s wrong on the server side, like a misconfiguration, lack of resources, or just a temporary glitch. If you run into this, try giving it another, sometimes it’s just a quick hiccup. If that doesn’t work, check the server logs by running ./launcher logs app to see if there’s any more info on what’s going wrong. If that still doesn’t help, restarting the app with ./launcher restart app can often fix the issue and get things back on track.
As a user, you cannot check logs or restart the app. So at discourse.theme-creator.io, you need to be a member of the Discourse team to check the logs.
The theme creator allows users to perform actions that are usually restricted to admins, such as installing themes and creating API keys. Those customizations sometimes break
I can reproduce the error; I am also unable to generate a key.
Thanks for clearing that up! Since I can’t check the logs or restart the app, I get that it might be a problem with the customizations from the theme creator. Since you can reproduce the error too, do you know if there’s a quick fix or if we need to escalate this to the Discourse team?
thanks for the report. someone will look at this.
@angus @pmusaraj this seems related to the changes in this PR (meta topic).
Do either of you know off-hand how we can update this kind of usage:
(if not, we’ll get someone assigned to dig into it next week)
I’ve made a PR which updates the theme-creator plugin to use the new system:
https://github.com/discourse/discourse-theme-creator/pull/100
Thanks @angus! Fix is merged and deployed
This topic was automatically closed after 16 hours. New replies are no longer allowed.

