user7752: 
export const callApi = async (endPoint: string) => {
try {
const request: string = env.REACT_APP_BLOCKFROST_URL + endPoint
const response = await fetch(request, {
//@ts-ignore
headers: {
"Content-Type": "application/json",
project_id: process.env.REACT_APP_BLOCKFROST_KEY,
},
method: "GET",
})
let data = await response.json()
return data
} catch (error) {}
}
export const findAssets = async (stakeAddress: string) => {
const endPoint = accounts/${stakeAddress}/addresses/assets
const result = await callApi(endPoint)
return result
}


user1142: As you can see in the error message, the address you provide is not in the expected format.
Addresses on testnets start with "addr_test1" but the address you provide starts with "addr1" (probably a mainnet address).
Try to add a testnet address to the request and it should work.
Example testnet address: addr_test1qpmtp5t0t5y6cqkaz7rfsyrx7mld77kpvksgkwm0p7en7qum7a589n30e80tclzrrnj8qr4qvzj6al0vpgtnmrkkksnqd8upj0
Also note that you probably want to use the PreProd network instead of the testnet. Testnet has been broken a while ago.

7752: <p><a href="https://i.stack.imgur.com/kyxFR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kyxFR.png" alt="enter image description here" /></a></p>
<p>export const callApi = async (endPoint: string) =&gt; {
try {
const request: string = env.REACT_APP_BLOCKFROST_URL + endPoint
const response = await fetch(request, {
//@ts-ignore
headers: {
&quot;Content-Type&quot;: &quot;application/json&quot;,
project_id: process.env.REACT_APP_BLOCKFROST_KEY,
},
method: &quot;GET&quot;,
})
let data = await response.json()
return data
} catch (error) {}
}</p>
<p>export const findAssets = async (stakeAddress: string) =&gt; {
const endPoint = <code>accounts/${stakeAddress}/addresses/assets</code>
const result = await callApi(endPoint)</p>
<p>return result
}
<a href="https://i.stack.imgur.com/kyxFR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kyxFR.png" alt="enter image description here" /></a></p>
 1142: <p>As you can see in the error message, the address you provide is not in the expected format.</p>
<p>Addresses on testnets start with &quot;addr_test1&quot; but the address you provide starts with &quot;addr1&quot; (probably a mainnet address).</p>
<p>Try to add a testnet address to the request and it should work.</p>
<p>Example testnet address: <code>addr_test1qpmtp5t0t5y6cqkaz7rfsyrx7mld77kpvksgkwm0p7en7qum7a589n30e80tclzrrnj8qr4qvzj6al0vpgtnmrkkksnqd8upj0</code></p>
<p>Also note that you probably want to use the PreProd network instead of the testnet. Testnet has been broken a while ago.</p>
