Discuss Scratch

RPiFoundation
Scratcher
4 posts

Cant embed projects - scratch.mit.edu refused to connect.

At the moment when I am receiving an error saying “scratch.mit.edu refused to connect.” when trying to embed projects into a HTML page.

For an example see https://projects.raspberrypi.org/en/projects/boat-race

This is the HTML:

<div class=“scratch-preview”>
<iframe allowtransparency=“true” width=“485” height=“402” src="https://scratch.mit.edu/projects/embed/63957956/?autostart=false“ frameborder=”0“></iframe>
<img src=”images/boat-final.png">
</div>

My browser / operating system: Windows NT 10.0, Chrome 71.0.3578.98, Flash 32.0 (release 0)
marvam
Scratcher
1 post

Cant embed projects - scratch.mit.edu refused to connect.

Same problem for me. I do not think it is because of the client system. Seems to me the scratch server denies to serve the embed requests.
The option “embed” that used to be on the project page is missing. There is a “Copy link” option instead.

Last edited by marvam (Jan. 2, 2019 20:40:37)

sgcc_
Scratcher
3 posts

Cant embed projects - scratch.mit.edu refused to connect.

RPiFoundation wrote:

At the moment when I am receiving an error saying “scratch.mit.edu refused to connect.” when trying to embed projects into a HTML page.

For an example see https://projects.raspberrypi.org/en/projects/boat-race

This is the HTML:

<div class=“scratch-preview”>
<iframe allowtransparency=“true” width=“485” height=“402” src="https://scratch.mit.edu/projects/embed/63957956/?autostart=false“ frameborder=”0“></iframe>
<img src=”images/boat-final.png">
</div>

My browser / operating system: Windows NT 10.0, Chrome 71.0.3578.98, Flash 32.0 (release 0)

Yup looks like we are incorrectly setting the embed headers. We are looking into it now, thanks for reporting!
sgcc_
Scratcher
3 posts

Cant embed projects - scratch.mit.edu refused to connect.

@RPiFoundation that issue should be fixed, the site looks like it loads the embedded projects! Thanks for letting us know about this.
RPiFoundation
Scratcher
4 posts

Cant embed projects - scratch.mit.edu refused to connect.

Thank you @sgcc_ - yes the embeds are now working. I get scrollbars which dont seem to do anything which I think it due to the iframe loading up a scratch page before the embed but I can probably fix that.
nmeyer17
New Scratcher
1 post

Cant embed projects - scratch.mit.edu refused to connect.

help! cant connect scratch.mit.edu over google chrome because it is no longer supported by MAC OS. help!!!!
davidvaz77
Scratcher
1 post

Cant embed projects - scratch.mit.edu refused to connect.

Trying to embed a scratch project into an H5P Interactive Book, but I get an error saying scratch.mit.edu refused to connect.

Any ideas on how to make this work?
CST1229
Scratcher
1000+ posts

Cant embed projects - scratch.mit.edu refused to connect.

davidvaz77 wrote:

Trying to embed a scratch project into an H5P Interactive Book, but I get an error saying scratch.mit.edu refused to connect.

Any ideas on how to make this work?
Did you use the embed player (scratch.mit.edu/projects/projectid/embed)?
Roloker
Scratcher
73 posts

Cant embed projects - scratch.mit.edu refused to connect.

Just trying



<iframe src="https://scratch.mit.edu/projects/561998846/embed“ allowtransparency=”true“ width=”485“ height=”402“ frameborder=”0“ scrolling=”no" allowfullscreen></iframe>
Roloker
Scratcher
73 posts

Cant embed projects - scratch.mit.edu refused to connect.

scratch.mit.edu/projects/projectid/embed)

Last edited by Roloker (Aug. 19, 2021 22:42:13)

Roloker
Scratcher
73 posts

Cant embed projects - scratch.mit.edu refused to connect.

e
DangerousDawn
Scratcher
1000+ posts

Cant embed projects - scratch.mit.edu refused to connect.

Roloker wrote:

Just trying



<iframe src="https://scratch.mit.edu/projects/561998846/embed“ allowtransparency=”true“ width=”485“ height=”402“ frameborder=”0“ scrolling=”no" allowfullscreen></iframe>

Roloker wrote:

scratch.mit.edu/projects/projectid/embed)

Roloker wrote:

e
Please do not necropost or spam (make random posts). As you can see, this topic is from 2019.
lame_dude
New Scratcher
3 posts

Cant embed projects - scratch.mit.edu refused to connect.

My crazy games preview is not
workinghttps://developer.crazygames.com/preview/f2cbb565-6a12-4d36-bf19-3d254f53b571?sdk_debug=true&mode=submission
lame_dude
New Scratcher
3 posts

Cant embed projects - scratch.mit.edu refused to connect.

My crazy games preview is not working:
file//Users/arihant/Desktop/Screen%20Shot%202022-08-07%20at%205.04.17%20PM.png

Last edited by lame_dude (Aug. 7, 2022 11:37:20)

lame_dude
New Scratcher
3 posts

Cant embed projects - scratch.mit.edu refused to connect.

My crazy games preview is not working

Powered by DjangoBB