Sendgrid API V3 is not working on cloud9 setup




I am trying my code on cloud9 setup. Everything is working fine but not the sendgrid API v3. Which I use to send the emails.

Is there any limitation for cloud9 aws for sending the emails?
I am using curl method to send the emails not using SMTP.

Please guide me.