You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run the following codes to upload a text file to Arweave storage:
const arweave = Arweave.init({
host: 'arweave.net',// Hostname or IP address for a Arweave host
port: 443, // Port
protocol: 'https', // Network protocol http or https
timeout: 20000, // Network request timeouts in milliseconds
logging: false, // Enable network request logging
});
const key = await arweave.wallets.generate();
const transaction = await arweave.createTransaction({ data }, key);
transaction.addTag('Content-Type', 'text/plain');
await arweave.transactions.sign(transaction, key);
let uploader = await arweave.transactions.getUploader(transaction);
log.info(`Uploading files to Arweave...`);
while (!uploader.isComplete) {
await uploader.uploadChunk();
log.info(`${uploader.pctComplete}% complete, ${uploader.uploadedChunks}/${uploader.totalChunks}`);
}
log.info(`\nContent added with TxID: ${transaction.id}`);
Got this error:
Error: Unable to upload transaction: 400, Bad Request
at TransactionUploader.postTransaction (E:\arweave-upload\src\common\lib\transaction-uploader.ts:283:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async TransactionUploader.uploadChunk (E:\arweave-upload\src\common\lib\transaction-uploader.ts:126:7)
at async saveToArweave (E:\arweave-upload\src\uploads\arweave.ts:38:5)
at async Command.action (E:\arweave-upload\src\commands\swarm.ts:45:17)
It worked two weeks ago, but suddenly producing that error today.
What happened to arweave?
The text was updated successfully, but these errors were encountered:
nothing has changed with the library. it's working as it should.
what has changed recently is that the arweave.net gateway is now returning errors that have been passed to it by the protocol nodes when invalid transactions are posted to them.
you are using a generated wallet which:
contains no AR balance for the storage fee
doesn't exist in the protocol
i suggest you check if your previous transactions are actually stored on the permaweb. you can do this using a block explorer, or by checking the tx status via the endpoint:
I have run the following codes to upload a text file to Arweave storage:
Got this error:
It worked two weeks ago, but suddenly producing that error today.
What happened to arweave?
The text was updated successfully, but these errors were encountered: