First, you need to verify that you have already allowed scripts to access the internet through Adobe After Effects.
To do this, go to Edit > Preferences > Script and Expressions.
Next, check the box 'Allow Scripts to Write Files and Access Network; and then click 'OK'.