auth0 で PUT リクエストを作成しようとすると、404 "user not found" エラーが発生し続けます。
ユーザーを更新しようとしており、ドキュメントで使用するように指示された正確なエンドポイントでこの API 呼び出しを行っています。
ドキュメントから呼び出しを行うと (テストが組み込まれています)、送信した本文ですべてが正常に機能し、200 成功メッセージを受け取ります。
アプリから同じ呼び出しをしようとすると、404 ユーザーが見つからないというエラーが発生し続けます。
ただし、同じエンドポイントを使用しuser_id
てアプリから GET すると、すべて正常に動作します (cliendID が正しく構成されていることを証明します)。
なぜこれが失敗するのですか?
var updateAuthUser = function(){
var request = {
"user_metadata": {
"springboardID": 100055
}
}
var update = $http.put('https://app36591925.auth0.com/api/v2/users/auth0%7C5606b3c4b0c70b49698612fc', request);
update.then(function(response) {
console.log("update success", response);
}, function(response) {
console.log("update failure", response);
});
return update;
}
作業中の GET リクエスト:
var getAuthUser = function(){
$http.get('https://app36591925.auth0.com/api/v2/users/auth0|5606b3c4b0c70b49698612fc')
.then(function(response){
console.log("response", response);
var deferred = $q.defer();
deferred.resolve(response);
return deferred.promise;
});
}