Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Htmlifier not working, error code given #158

Open
Xblader1359 opened this issue Nov 13, 2024 · 10 comments
Open

Htmlifier not working, error code given #158

Xblader1359 opened this issue Nov 13, 2024 · 10 comments

Comments

@Xblader1359
Copy link

I don't know why this is happening. When i try to use htmlifier it gives me this:

Unexpected error:
Error: Received HTTP 403 error for https://projects.scratch.mit.edu/0
at toBlob (https://sheeptester.github.io/htmlifier/index.bundle.min.js:1:414764)
at async https://sheeptester.github.io/htmlifier/index.bundle.min.js:1:7376892
at async Htmlifier._createHtml (https://sheeptester.github.io/htmlifier/index.bundle.min.js:1:7376746)
at async Htmlifier.htmlify (https://sheeptester.github.io/htmlifier/index.bundle.min.js:1:7426098)

please help me

@SheepTester
Copy link
Owner

can you send a screenshot of the options you're using?

@Xblader1359
Copy link
Author

Sure, here you go.
IMG_0590
IMG_0593
IMG_0592
IMG_0591
IMG_0589

@SheepTester
Copy link
Owner

hmm, I think the error is caused when you have "a project ID on Scratch" selected rather than "selecting a file on your computer", so it tried to get a project with ID 0. Can you make sure you have the "selecting a file on your computer" option selected and try again?

image

@Xblader1359
Copy link
Author

I forgot to mention that this is a recreation of the original with the settings. I got the error while using a url or id, but didn’t with a file. When I tried the file, though, the result didn’t let me edit the project, so is there any way to download a version of a project where I can edit the code and sprites?

@SheepTester
Copy link
Owner

yeah, you won't be able to edit the project when you HTMLify it. the idea is that you'd finish editing your project in Scratch, then htmlify it when you're done

uploading projects by ID doesn't work anymore

@Xblader1359
Copy link
Author

All good. Is there any other way you know of so that I can download an html file of scratch so I can edit projects on it?

@SheepTester
Copy link
Owner

i don't think so, but why do you need an html file? why not just the scratch editor?

@Xblader1359
Copy link
Author

I just want to use it offline.

@jimmyorr
Copy link

It seems to be trying to download url with the format:

https://projects.scratch.mit.edu/12345

...but maybe needs to be in the format:

https://scratch.mit.edu/projects/12345

@SheepTester
Copy link
Owner

No, the format is correct because it needs to get the project JSON. However, Scratch now requires authentication to get project data, and I can't hard code it into the HTMLifier since it refreshes regularly I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants