I tried to upload like this: ```ts export const uploadMetadata = async (data: CoinInfo): Promise<any> => { const url = 'https://api.pinata.cloud/pinning/pinFileToIPFS/' const metadata = { name: data.name, ticker: data.ticker, URL: data.url, description: data.description, } try { const response = await axios.post(url, metadata, { headers: { pinata_api_key: PINATA_API_KEY, pinata_secret_api_key: PINATA_SECRET_API_KEY, 'Content-Type': 'application/json' }}); return response.data; } catch (error) { console.error('Error uploading metadata: ', error); return error; } } ``` But I got an error. What is the reason do you think?
I tried to upload like this:
But I got an error.
What is the reason do you think?