[ad_1]
try {
const res = await fetch(
`http://localhost:9999/chart?start=${startTimestamp}&end=${endTimestamp}`
);
console.log("res", res)
console.log("json", await res.json())
The first log (res) gives a response with a URL.
The response shows that the json is empty (length: 0)
However, when I press the link, it shows the data being properly populated
However, the second log (json) gives a response with an empty data:
json {"result":true,"message":"ok","data":[]}
[ad_2]