[SOLVED] Failed to load resource: the server responded with a status of 400 ()

I got this error message might be because of my development that have try other function that might like to create something multiple time it might crash in the server maybe. What should I do ? it error POST 400

you should give more information about how you got that error, what you tried to do, what function you executed.

it’s the server overload many because I just called saveIPFS with the same file name and detail multiple times. and I try with another server and it works that means I think I reach the limit from the previous server and I don’t know how to reset the server connection. or should I just build the new one because everything is in the development process anyway.

And it is good to know how to reset

And this is the code that I run many time.

const objk = [];
objk.push({title:title, description: description, artist: artist, artist_wallet: artistW})
const ipfsLink = await saveData2IPFS(objk).then((res)=>{return res.ipfs();
export const saveData2IPFS = async (objk: Object)=>{
    const file = new Moralis.File("file.json", {base64 : btoa(JSON.stringify(objk))});
    const res = await file.saveIPFS();
    return file;

how many times did you upload that file to IPFS? hundreds, thousands, more?

I am not sure maybe 50-100 time

@cryptokid After waiting for awhile now it is working. :blush: :blush: :blush:

ok, maybe it was a temporary problem only

1 Like