Stoplight just deleted all my GitHub projects. Now it's refusing to let me connect to GitHub. Help?
Originally posted by user Nananana to the Stoplight Community on 01/09/2024 at 07:46 ET.
Have created a ticket on the Support Portal but no idea when I'll hear back, and this is pretty urgent. Would appreciate anyone's advice with this.
I changed the GitHub integration settings in our workspace. This deleted all projects we had which were linked to GitHub. This was not desired and there was no warning.
Since these projects were backed by GitHub, I assumed I could get them back by re-creating projects from the GitHub repositories. However, Stoplight is throwing errors when I try to do this.
I set up a new GitHub Integration in Settings, using a GitHub OAuth App, as instructed in the docs. The Test Settings button tells me that Everything Looks Good!.
However when I go to "Create or Import a Project - Add from GitHub", it tells me I need to Connect GitHub. I had assumed that the GitHub integration would handle this automatically, but it doesn't seem to. I continued to authorize the connection with GitHub. However this returns an error message: "syntax error at or near \")\"". I have retried multiple times, but Stoplight refuses to connect my GitHub account. This means I have not been able to recreate our GitHub-backed Stoplight projects.
So basically all our production API docs are down, as I'm trying to onboard a new client to said API. Any advice?
Nananana (OP) [01/09/2024 - 08:05 ET]
For anyone else facing this issue: I downloaded the API projects from GitHub to local and then pushed to Stoplight using the CLI method (https://docs.stoplight.io/docs/platform/f76c84240244f-publish-with-the-stoplight-cli). Works as a patch fix.