Skip to content

Update node-js.mdx to handle proper fetch, previous one was causing a… - #61

Merged
stevedylandev merged 1 commit into
PinataCloud:mainfrom
bivekk51:patch-1
Jun 18, 2025
Merged

Update node-js.mdx to handle proper fetch, previous one was causing a…#61
stevedylandev merged 1 commit into
PinataCloud:mainfrom
bivekk51:patch-1

Conversation

@bivekk51

Copy link
Copy Markdown
Contributor

The current of the version provides the following code to fetch data

    const file = await pinata.gateways.get("bafkreiac3t35fklpiwqonav2vj4x2dh6x2zugkdu7dsh6zkaq5jr33lcwy")

but, pinata.gateways.get() is not a valid function and it should be pinata.gateways.public.get("CID_URL"). The curent versions throws the following eror
Screenshot From 2025-06-18 21-02-17

…n error

The current of the version provides the following code to fetch data 
```
    const file = await pinata.gateways.get("bafkreiac3t35fklpiwqonav2vj4x2dh6x2zugkdu7dsh6zkaq5jr33lcwy")
```

but, `pinata.gateways.get()` is not a valid function and it should be `pinata.gateways.public.get("CID_URL")`

@stevedylandev stevedylandev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this!

@stevedylandev
stevedylandev merged commit ebe2f51 into PinataCloud:main Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants