Skip to content

Instantly share code, notes, and snippets.

@kjs3
Created November 17, 2020 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjs3/7d0790d3a7a2e79322349625bb03776c to your computer and use it in GitHub Desktop.
Save kjs3/7d0790d3a7a2e79322349625bb03776c to your computer and use it in GitHub Desktop.
Malformed Response Failure
const got = require('got')
main()
async function main() {
const url = 'https://read.audioarchitect.co/feed/podcast'
try {
console.log('getting: ', url)
const res = await got(url)
console.log('res: ', res)
console.log('never here')
} catch (err) {
console.error(err)
console.log('not here either')
}
console.log('wtf')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment