401 (Unauthorized)

before i used public ipfs but now it is not working so i made dedicated gateway and i tryed but it show ERROR 401

POST https://ipfs.infura.io:5001/api/v0/add?stream-channels=true 401 (Unauthorized)

Plz help me what should i do

You’ll need to pass authentication to your IpfsApi, here’s an example How to add data using ipfs-http-client

1 Like

Thank you for your Help.

I solved problem . :slight_smile:

1 Like

Can u please tell how u solve this error ?

How did you solve the problem, I am facing the same issue.
Did you create in infura a project with your account?