0
我将SuperAgent到API的数据返回到控制台,但我用这2个错误API的数据返回错误
迎接这是我使用的代码:
componentDidMount() {
console.log("Did mount");
const url = 'https://api.goodzer.com/products/v0.1/search_stores/?query=v-neck+sweater&lat=40.7575285&lng=-73.9884469&radius=5&priceRange=30:120&apiKey=0816b72b7c798c6c6994c915b0a1854d';
superagent
.get(url)
.query(null)
.set('Accept', 'text/json')
.end((error, response) => {
console.log(JSON.stringify(response.body));
})
}
为什么我会收到这些错误?