html5 error 0

This topic has been viewed 13311 times and has 5 replies
Thread status: Active
Discuss anything here [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
sunkgrowsupply
Posts: 1
Joined: Wed Mar 18, 2020 6:35 pm
Country: United States

html5 error 0

Post by sunkgrowsupply »

I keep getting error 5 while requesting ( *.zip file ).
I tried searching error 0 in the forum with nothing coming up. anyone have the quick fix for this?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: html5 error 0

Post by Puybaret »

I guess you should allow your browser to read local files or host the exported files on a web server.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Alex210
Posts: 11
Joined: Mon Mar 02, 2020 7:59 am
Country: United States

Re: html5 error 0

Post by Alex210 »

Check this thread hope it might help you,
http://www.sweethome3d.com/support/foru ... hread,6708
davequ
Posts: 4
Joined: Sun Mar 07, 2021 10:51 pm
Country: United Kingdom

Re: html5 error 0

Post by davequ »

Having an issue trying to get the default html to work. Opening it in Chrome (latest version Version 88.0.4324.190 on Windows 10) get Error 0 when requesting default.sh3d. I have checked the settings and File System access is on, as is Allow apps to access... Also tried C:\PROGRA~2\Google\Chrome\Application>chrome.exe --allow-file-access-from-file but seems to make no difference. I get a tab with a View Home button, and ...HTML5 Viewer at the bottom. but on clicking the button get the error.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: html5 error 0

Post by Puybaret »

Apparently, Chrome wants to make it harder and harder to use it for developers [:(]

From this page, you should now run Chrome with the following options:

Code: Select all

--disable-web-security --user-data-dir="[some directory here]"
for example:

Code: Select all

--disable-web-security --user-data-dir=ChromeTemp
Emmanuel Puybaret, Sweet Home 3D creator
vinaayaksingh
Posts: 1
Joined: Tue Jan 24, 2023 5:13 pm
Country: India

Re: html5 error 0

Post by vinaayaksingh »

Browser blocks local file.
Assuming you have dev env setup
You can install very simple dev server & then access the html from browser via server.
Here are the steps:
1. Installing the Node.js http-server. Its simple. Open cmd prompt and type:
npm install http-server -g

Then go to the folder where your html file is there. open cmd prompt in that folder. and type command:
http-server . -p 8000

Now you can open http://127.0.0.1:8000/ and then from there open your html file.

Above is just one method. There are many such server available.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest