Skip to content

Creating a repository from stackblitz in github results in Error: failed to fetch #1815

@KostaDoul

Description

@KostaDoul

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

  1. Export "bolt" project wirth stackblitz.
  2. Click on "create a repository"
  3. give the repository a name.
  4. check the box to make it private.
  5. Create it.

Expected behavior

A repository in github which contains all the previous files.

Parity with Local

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions