Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on obtainMimeType #183

Open
preschian opened this issue Nov 21, 2023 · 0 comments
Open

error on obtainMimeType #183

preschian opened this issue Nov 21, 2023 · 0 comments
Labels

Comments

@preschian
Copy link
Member

reproduce:

import { obtainMimeType } from '@kodadot1/minipfs'

async function fetchMimeType() {
  return await obtainMimeType('https://cloudflare-ipfs.com/ipfs/bafkreia3j75r474kgxxmptwh5n43j5nrvn3du5l7dcfq2twh73wmagqs6m')
}

console.log(fetchMimeType())

throw TypeError: Cannot destructure property 'type' of '(intermediate value)' as it is undefined.

@vikiival vikiival added hyperdata kodadot/hyperdata minipfs and removed hyperdata kodadot/hyperdata labels Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants