mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Catch fetch errors
This commit is contained in:
parent
36e022b3a5
commit
fe9a2bf4ae
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ const vercelUrl = process.env.VERCEL_URL
|
|||
console.log(`Server listening on https://${ vercelUrl }:${ port }/`)
|
||||
|
||||
const { data } = await axios.get(`http://${ vercelUrl }:${ port }/`)
|
||||
.catch( err => {
|
||||
console.log( 'err', err )
|
||||
})
|
||||
|
||||
console.log( data.slice(0, 100) )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue