-
Notifications
You must be signed in to change notification settings - Fork 262
Description
Describe the bug
Hi StackBlitz Team,
I'm experiencing a persistent issue when trying to export a project from StackBlitz to GitHub.
Problem Summary:
When I click "Create a repository" or try to export to GitHub, I consistently get the error:
"failed to fetch"
Although a GitHub repository is created, it remains completely empty:
No files are pushed. No main branch is created. As a result, Netlify can't connect to the repo and StackBlitz can't sync code.
What I’ve tried:
Verified that StackBlitz is listed under Installed GitHub Apps and Authorized GitHub Apps.
Revoked and re-authorized access via GitHub.
Tried multiple browsers (Chrome, Firefox) and disabled pop-up blockers.
Attempted in private/incognito mode.
Tried to trigger the GitHub OAuth authorization popup, but no popup appears.
Exported ZIP and tried manual upload, but my project is too large for GitHub's web uploader.
Suspected Cause:
It appears that StackBlitz has GitHub App access but lacks proper OAuth authorization, preventing code from being pushed. This might be due to:
A missing or expired OAuth token. A bug in how StackBlitz initializes the GitHub connection.
Request:
Could you please help me:
Re-enable OAuth authorization properly?
Or confirm if this is a known issue on your end?
Let me know if you need more details — I can also provide screenshots and project links if needed.
Thanks so much for your help!
Best regards,
Link to the blitz that caused the error
https://stackblitz.com/edit/sb1-ugtn977i?file=index.html
Steps to reproduce
- Export "bolt" project wirth stackblitz.
- Click on "create a repository"
- give the repository a name.
- check the box to make it private.
- Create it.
Expected behavior
A repository in github which contains all the previous files.
Parity with Local
- I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Browser name = Chrome
Full version = 135.0.0.0
Major version = 135
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 65769785,
"usedJSHeapSize": 64088433,
"jsHeapSizeLimit": 4294705152
}
Hash = b14ae8b6
Additional context
No response