Ipfs get request not working

Hi,
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
Thx

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