Ipfs get request not working

i am trying to do get request like below but i am getting error

const get = async hash => {

const URL = “https://ipfs.infura.io:5001/api/v0/cat/?arg=” + hash;

{“Message”:“invalid path “”: path does not begin with ‘/’”,“Code”:0,“Type”:“error”}

Please advise

Hello, @komaturir!

It looks like you have one extra forward-slash (/) in the URL after ‘cat’.

Try the following:

const URL = “https://ipfs.infura.io:5001/api/v0/cat?arg=” + hash;

1 Like

sorry its not working same error