I am trying to use uploadFolder api, though its working with my own API key in the documentation, but doesnât work on localhost:3000 or 127.0.0.1:3000. The axios throw 500 error 1. Error: Request to bg page ([object Object]) rejected by timeout
This is the code:
`
const save = async () => {
const options = {
method: âPOSTâ,
url: âhttps://deep-index.moralis.io/api/v2/ipfs/uploadFolderâ,
headers: {
accept: âapplication/jsonâ,
âcontent-typeâ: âapplication/jsonâ,
âX-API-Keyâ: ââ
},
data: [{ path: "post.json", content: "YXNkZg=="}],
};
await axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error.response);
});
};
`