Makecode Error: "Sorry, we could not load this project"

Every time I try to open a game I was working on in MakeCode’s web editor, I am getting an error “Sorry, we could not load this project”. I have an image version from a few days ago that I saved to be able to get it back, but I’ve lost a lot of work on it. It’s not being committed to github, so I don’t have that way of getting it back without losing a lot of progress. I have tried making a copy (it won’t copy) and Open in a new tab. I’m writing to report the bug, hopefully someone at Microsoft will see this and try to fix it so it doesn’t happen to others.

How it happened: I was in the middle of working on the game in MakeCode’s web editor when my computer shut down (it ran out of battery). I had just added an extension and there were some errors that I was trying to address.

What I would expect: If the project really is in a broken state, I wish that I could get to the revision history to revert the project to a previous save. It seems like this should be possible from the All Projects list as an action, e.g. View Revision History.

Browser console: here’s what I see in the browser console when I try to load it:

pxtapp.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')
at e.MainPackage.packageLocalizationStringsAsync (pxtapp.js:1:311885)
at pxtapp.js:1:314704
at Array.map ()
at e.MainPackage.localizationStringsAsync (pxtapp.js:1:314695)
at e.localizeApisAsync (pxtapp.js:1:335923)
at main.js:6:577955

pxtapp.js:1 warning: Sorry, we could not load this project.
pxtapp.js:1 TypeError: Cannot read properties of undefined (reading 'text')
at main.js:6:1536894
at async Te.internalLoadHeaderAsync (main.js:6:328698)
at async Te.loadHeaderAsync (main.js:6:327912)
---serviceworker:1 Received disconnect for eb023f85-4b83-41ea-0c0f-387911add7f1
main.js:6 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'text')
at main.js:6:1536894
at async Te.internalLoadHeaderAsync (main.js:6:328698)
at async Te.loadHeaderAsync (main.js:6:327912)
---serviceworker:1 check for existing lock
---serviceworker:1 Timed-out check for existing lock
---serviceworker:1 Received lock request eb023f85-4b83-41ea-0c0f-387911add7f1
---serviceworker:1 Granted lock request eb023f85-4b83-41ea-0c0f-387911add7f1
2 Likes

That might be the issue. The exact same thing happened to me in terraria on my very old tablet, where my world corrupted. I played a different world, then the other world AND my character got corrupted when my tablet died again. If that’s the case it’s probably not able to be restored.

2 Likes

(@richard is that the case?)

1 Like