diff --git a/notobot.js b/notobot.js
index e730b36174e2c9e6c71e6e6d962e181c95ea5306..ba20bff6fd612ab857ffd6bc635b3ed7b3d92cca 100644
--- a/notobot.js
+++ b/notobot.js
@@ -37,6 +37,7 @@ let gradesDone = []; //Notes déjà traitées
 function aurionRequest(url, data=null, method='GET' ){
     var options = {
         method: method,
+	https:{rejectUnauthorized: false},
         cookieJar: cookieJar
     }
 
@@ -230,7 +231,7 @@ async function start(){
             const execution = await getExecution();
             await login(execution);
             await lookForGrades();
-            await new Promise(1000*60*15); //Attente de 15 min
+            await new Promise(resolve => setTimeout(resolve,1000*60*15)); //Attente de 15 min
         }
     }catch(e){
         if(e.response && e.response.statusCode === 401){
@@ -241,4 +242,4 @@ async function start(){
     }
 }
 
-start();
\ No newline at end of file
+start();