const matches = res.toJSON().body.match(pattern) value = matches[0].substring(13) TypeError: Cannot read properties of null (reading '0') node_modules\instagram-web-api\lib\index.js:57:22