nftstorage / nft.storage

**Notice: Uploads Decommissioned - Existing Data is Safe!** NFT.Storage Classic (classic.nft.storage) offers free decentralized storage and bandwidth for NFTs on IPFS and Filecoin. June 2024 Update: No new uploads, but all existing data is safe. Try the new NFT.Storage, which preserves data in long term Filecoin storage. Go to app.nft.storage
https://classic.nft.storage
Other
619 stars 167 forks source link

401 Unauthorized error #2730

Closed KeerthanaBirelli closed 2 months ago

KeerthanaBirelli commented 2 months ago

I am working on a sveltekit project and thought of integrating file upload feature in it. I have created an account at nft.storage and followed ntf.storage documentation. When I upload the file I am getting this error of 401 Unauthorized. nft_error I tried even testing the API key ( that I have generated at https://app.nft.storage/ ) by importing curl command in postman still I got the same error: postman_output

elizabeth-griffiths commented 2 months ago

"API Key is malformed or failed to parse" is because an API key from https://app.nft.storage/login Is being used for https://classic.nft.storage/ (the API, SDK or NFTUp). API keys from https://app.nft.storage/login only work with https://app.nft.storage/login.

If you've purchased storage, it can be used to store data in the same login where you purchased it—app.nft.storage. First mint your NFTs then send us the NFT data—metadata and imagery CIDs, blockchain(s) minted on, contract address and token IDs. We store these in long term Filecoin storage. Note that you need to upload the data to IPFS separately, here's a blog on how to do that: https://nft.storage/blog/onboard-nft-data-to-ipfs