메신저 처음 작업을 시도하고 인증되지 않은 마스터 키 오류에 stucked .... 약간의 몸은 나에게구문 분석 서버의 MasterKey 오류가
Parse.Cloud.job('testjob', function (request, status){
Parse.Cloud.httpRequest({
url: 'http://localhost:1337/parse/functions/hello'
},{useMasterKey:true}).then(function(httpResponse) {
// success
console.log(httpResponse.text);
status.success('OK');
},function(httpResponse) {
// error
status.error('ERROR: ' + httpResponse.status);
console.error('ERROR: ' + httpResponse.status);
});
});
// 내 인덱스 cofig 파일
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/pingin',
cloud: process.env.CLOUD_CODE_MAIN ||'./cloud/main.js',
appId: process.env.APP_ID || 'my app id',
masterKey: process.env.MASTER_KEY || 'my key',
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed
liveQuery: {
classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
}
});
을 안내 할 수 있습니다
마스터 키는 어디에 있으며 어떻게 구성 했습니까? –
@ cricket_007 내 마스터 키가 js 서버 구성 파일에 있습니다. "server.js"라는 파일은 다음과 같습니다. – MSGK
질문 : –