2016-11-28 9 views
0

こんにちは私はfrisbyへの削除リクエスト中に500エラーに直面しています。私が何か間違ってしまった場合、コードは私に訂正してください!frisby削除リクエストに500エラーが発生しました

var frisby = require('frisby'); 

//get the current UTC time from this URL: (https://currentmillis.com/) 
var now = new Date(); 
var now_utc = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds()) 
var currentUTCTime = now_utc.getTime() - (now_utc.getTimezoneOffset() * 60000); 

frisby.create('Authentication for Delete Request Valid User Name and Password') 
    .delete('http://example.com', 
     { 
     headers: 
     { 
       'Accept':'application/json', 
       'Auth-Username':'abcd', 
       'X-Application-Key':'xyzzzz', 
       'Content-Type':'application/json', 
       'x-locale':'en_US', 
       'x-microtime':currentUTCTime, //get the current UTC time 
       'auth-signature': 'example', // Added new auth-signature for new responses 
       } 
      } 
     ) 
    .expectStatus(200) 
    .toss() 
+0

私を助けてください。 –

答えて

0

500は、内部サーバーエラーを示します。つまり、REST呼び出しがサーバー内で何かを壊したということです。サーバーログをチェックして、実際の問題を確認してください。これにはサーバー側で問題があるかもしれません。

関連する問題