msaaddev / who-unfollowed-me

🙁 A CLI that tells you who recently unfollowed you on GitHub
https://twitter.com/msaaddev
MIT License
171 stars 8 forks source link

Unhandled error in response #3

Closed eduardomecchia closed 2 years ago

eduardomecchia commented 2 years ago

The script worked fine on Windows 10, but I get this output after switching to Windows 11:

‼ WARNING Following folk/s have unfollowed you recently. × Fetching GitHub followers C:\Users\Eduardo\AppData\Roaming\npm\node_modules\who-unfollowed-me\utils\cli.js:38 if (error.response.status === 404) { ^

TypeError: Cannot read properties of undefined (reading 'status') at module.exports (C:\Users\Eduardo\AppData\Roaming\npm\node_modules\who-unfollowed-me\utils\cli.js:38:22) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async module.exports (C:\Users\Eduardo\AppData\Roaming\npm\node_modules\who-unfollowed-me\index.js:29:2)

msaaddev commented 2 years ago

Thanks for letting me know. I will fix it ASAP.

msaaddev commented 2 years ago

@eduardomecchia I have launched a new release. Kindly update the CLI and try again.

eduardomecchia commented 2 years ago

Works fine now, thank you!!