You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'use strict'constgot=require('got')consturl='https://github.com/xxx.jpg'got(url,function(err){console.log(err.statusCode)// 406})got(url).catch(function(err){console.log(err.statusCode)// 406})got.stream(url).on('error',function(err){console.log(err.statusCode)// output nothing, seams that there is no error event})
The text was updated successfully, but these errors were encountered:
Example code:
The text was updated successfully, but these errors were encountered: