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
621 stars 168 forks source link

API Key is malformed or failed to parse #2570

Closed chitamle closed 3 months ago

chitamle commented 3 months ago

I've purchased 1GB of storage and generated an API key on https://app.nft.storage/. However, when I tried to store an image using your example at https://github.com/nftstorage/nft.storage/blob/main/examples/client/browser/store.html, it showed that the "API Key is malformed or failed to parse." Do you have any idea how to fix it? Thank you.

elizabeth-griffiths commented 3 months ago

Hi there - We'll look into this and get back to you. Thanks!

On Mon, Apr 8, 2024 at 2:48 PM chitamle @.***> wrote:

I've purchased 1GB of storage and generated an API key on https://app.nft.storage/. However, when I tried to store an image using your example at https://github.com/nftstorage/nft.storage/blob/main/examples/client/browser/store.html, it showed that the "API Key is malformed or failed to parse." Do you have any idea how to fix it? Thank you.

— Reply to this email directly, view it on GitHub https://github.com/nftstorage/nft.storage/issues/2570, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4YFHQPS44E4BQKCO2QHCQTY4LQ77AVCNFSM6AAAAABF5HISOSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTCOBXHAYTIOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Elizabeth Griffiths

@.***

Product Manager

NFT.Storage | Protocol Labs

aakash-taneja commented 3 months ago

It seems the issue may be due to using the classic NFT.Storage SDK with the current product API key. Please note that these are separate products. Additionally, a new SDK is in development. In the meantime, you can utilize our API to interact with the platform.

Xerioex commented 3 months ago

How can one use the API to post json blob data (not exactly erc1155 spec) or how can one get an API key which works with the nft.storage SDK, since they are seperate products. At the moment the docs dont show how to post json metadata that doesnt conform to the spec, for example that isnt part of a collection, or that doesnt need to specify a chain id

chitamle commented 3 months ago

How can one use the API to post json blob data (not exactly erc1155 spec) or how can one get an API key which works with the nft.storage SDK, since they are seperate products. At the moment the docs dont show how to post json metadata that doesnt conform to the spec, for example that isnt part of a collection, or that doesnt need to specify a chain id

That's what I want to ask as well.

It seems the issue may be due to using the classic NFT.Storage SDK with the current product API key. Please note that these are separate products. Additionally, a new SDK is in development. In the meantime, you can utilize our API to interact with the platform.

I just want to upload some images and json. Could you please provide the documentation link for this?

Agilulfo1820 commented 3 months ago

Getting this issue as well.

elizabeth-griffiths commented 3 months ago

Please note https://app.nft.storage/login and https://classic.nft.storage requires different API keys. Can everyone here please reply to clarify which you are referring to?

chitamle - I see you are using https://app.nft.storage/login Regarding your question *"*I just want to upload some images and json. Could you please provide the documentation link for this?"

The new version of NFT.Storage is even more focused on the long-term preservation of NFTs.To use the new version you will need to onboard your off-chain NFT to IPFS first to make it highly available so that it shows up on marketplaces and other platforms. There are five different ways of doing this, and each has a different degree of difficulty or ease of use. To help you onboard your data, here are the different options you have: https://nft.storage/blog/onboard-nft-data-to-ipfs

On Tue, Apr 9, 2024 at 5:05 AM Dan Rusnac @.***> wrote:

Getting this issue as well.

— Reply to this email directly, view it on GitHub https://github.com/nftstorage/nft.storage/issues/2570#issuecomment-2044504849, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4YFHQLJ46DM24N4BIYJMPDY4OVOXAVCNFSM6AAAAABF5HISOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGUYDIOBUHE . You are receiving this because you commented.Message ID: <nftstorage/nft. @.***>

--

Elizabeth Griffiths

@.***

Product Manager

NFT.Storage | Protocol Labs

chitamle commented 3 months ago

Yes I'm using https://app.nft.storage/login. Previously, I experimented with Web3.Storage to upload some images on-chain to IPFS. However, right now I'm curious about the unique benefits offered by your app.nft.storage service in comparison. Are there additional features that your service provides which Web3.Storage does not ?

NFTStorageGithub commented 3 months ago

Hi @chitamle This ticket is focused on helping with the one issue "API Key is malformed or failed to parse". Can you please create a new ticket for your new question?

NFTStorageGithub commented 3 months ago

Hi Everyone - Our dev team has confirmed that this issue: "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/ SDK.

To use https://app.nft.storage/login, use the dashboard or the API linked from the dashboard docs. There is not an SDK yet.

starkiiiii commented 3 months ago

Hi Everyone - Our dev team has confirmed that this issue: "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/ SDK.

To use https://app.nft.storage/login, use the dashboard or the API linked from the dashboard docs. There is not an SDK yet.

I don't understand your point I do what you say but it doesn't work

starkiiiii commented 3 months ago

Hi Everyone - Our dev team has confirmed that this issue: "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/ SDK. To use https://app.nft.storage/login, use the dashboard or the API linked from the dashboard docs. There is not an SDK yet.

I don't understand your point I do what you say but it doesn't work

I think we need a new app

elizabeth-griffiths commented 3 months ago

I don't understand your point I do what you say but it doesn't work If you are using an API key from https://app.nft.storage/login for https://classic.nft.storage/ SDK it won't work. API keys from https://app.nft.storage/login only work for https://app.nft.storage/login.

starkiiiii commented 2 months ago

Thank you but I can't login into https://classic.nft.storage/ . I write my email and conform it but the site redirecting me to login window again and again.

elizabeth-griffiths commented 2 months ago

Have you ever registered for NFT.Storage before April 2024? If not, you can't login because you aren't a registered user. Please create a new ticket if you are having login issues. This ticket is being closed as the original issue is solved.