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

POST https://api.ipfscloud.store/file net::ERR_EMPTY_RESPONSE #20

Closed
marsrobertson opened this issue Apr 24, 2019 · 3 comments
Closed

Comments

@marsrobertson
Copy link

marsrobertson commented Apr 24, 2019

It was working for a moment.

The next moment it fails? 🤔

data: null
error: ""
status: "failed"

Super simple code sample

<!-- code from: https://github.com/cluster-labs/ipfscloud-web#how-to-use -->

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>IpfsCloud demo</title>

	<link href="https://cdn.jsdelivr.net/gh/vasa-develop/ipfscloud@f157536445863f27481d8ce5e3025f25264d1113/app/docs/v1/css/ipfscloud-uploader.min.css" rel="stylesheet">

  </head>
  <body>

    <center>
        <div id="IpfsCloudUploader"></div>
        <div id="IpfsGatewayUploadedLink"></div>
    </center>

	<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
	<script src="https://cdn.jsdelivr.net/gh/vasa-develop/ipfscloud@bd23078768a5c708fc0f322a3e0e0cfb45b61f71/app/docs/v1/js/ipfscloud-uploader.min.js" ></script>

	<script>
	ipfscloud.addEventListener("icevent", function(event) {
		if (event.detail.status === "success") {
			let ipfsLink = "https://gateway.ipfs.io/ipfs/" + event.data.path;
			document.getElementById("IpfsGatewayUploadedLink").innerHTML = ipfsLink;

		} else {
			console.log(event.detail);
			alert("something happened, check console");
		}
	});
	</script>
  
  </body>
</html>
@vasa-develop
Copy link
Member

vasa-develop commented Apr 24, 2019

The reason for this error is that the ipfs nodes we use, stop sometimes. So, it throws this error.
I am working on a cluster implementation, that is robust and way better than current node infrastructure.

I have started the nodes. It's running now ;)

@marsrobertson
Copy link
Author

marsrobertson commented Apr 24, 2019

I can confirm - it is working now!

Updated the StackOverflow answer: https://ethereum.stackexchange.com/a/70050/2524


And down again :(

@vasa-develop
Copy link
Member

vasa-develop commented Apr 26, 2019

I have added a new dedicated server for ipfscloud. Now you can rely on it ;)

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

2 participants