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

There was a problem reading that file (myfilename.nii.gz): Response status = 0 #199

Open
whiteneng opened this issue May 3, 2021 · 3 comments

Comments

@whiteneng
Copy link

Dears.

I am facing some weired error.
I tried to automatically load images with following codes, however I had message as title.
"There was a problem reading that file (myfilename.nii.gz): Response status = 0"

Is there any problem on my code?
I tried to load without installing or building.

How can I solve this issue? Thank you for your works, Best regards.. Yong-Hwan

Here is my "index.html"

	<!-- iOS meta tags -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

	<link rel="stylesheet" type="text/css" href="./papaya.css" />
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="./papaya.js?build=1449"></script>
<title>Papaya Viewer</title>
<script type="text/javascript">
	var params = [];
            params["worldSpace"] = false;
            params["images"] = ["./myfilename.nii.gz", "./Untitled.nii.gz"];
	params["Untitled.nii.gz"] = {"min": 0.75, "max": 0.8, "lut": "Red Overlay"};
</script>

</head>

<body>
<div class="papaya" data-params="params"></div>
</body>
----------------------------------------------------------------------------------------------------------------------------------------

And, files are exist as followed.

image

@oraclexudehua
Copy link

oraclexudehua commented May 6, 2021

this file path is error,i think your can see example firstly or["myfilename.nii.gz", "Untitled.nii.gz"]
image

@matheussouza9
Copy link

matheussouza9 commented Jun 9, 2021

@whiteneng Have you tried to host these files on a server instead using the file system? A simple server like builtin python http server should work.

On the dir you want, just run python -m http.server 8000 and the files will be served. (ps: you don't need to write any python code. You just need to have python installed on your machine)

@cynde
Copy link

cynde commented Oct 19, 2022

@matheussouza9 so how do you write the url for the data-param? when I use builtin python http server, the error is still the same which is Response status = 0

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

4 participants