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

Error: failed space/blob/add invocation #1600

Open
0xExp-po opened this issue Dec 5, 2024 · 0 comments
Open

Error: failed space/blob/add invocation #1600

0xExp-po opened this issue Dec 5, 2024 · 0 comments

Comments

@0xExp-po
Copy link

0xExp-po commented Dec 5, 2024

      const client = await Client.create();
      const apiUrl = `/api/w3up-delegation`;

      const response = await fetch(apiUrl, {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ did: client.agent.did() }),
      });
      const data = await response.arrayBuffer();

      const delegation = await Delegation.extract(new Uint8Array(data));
      if (!delegation.ok) {
        throw new Error("Failed to extract delegation", {
          cause: delegation.error,
        });
      }


      const space = await client.addSpace(delegation.ok);
      client.setCurrentSpace(space.did());
      
      ...
      const directoryCid = await client.uploadDirectory(files);

I uploaded directory directly in the front end side by using the delegation.
This function was working well but suddenly an error started occurs.

Error: failed space/blob/add invocation
    at add12 (@web3-storage_w3up-client.js?v=08ca7a59:18688:11)
    at async Object.transform (@web3-storage_w3up-client.js?v=08ca7a59:26845:9)

I've confirmed this error occurs in the last line(upload directory function).
How can I resolve this issue.

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

1 participant