创建用户时出错:{[错误:没有登录传输可用于请求的方法]代码:'TRANSPORT_UNAVAILABLE'} [英] Error creating user: { [Error: There are no login transports available for the requested method.] code: 'TRANSPORT_UNAVAILABLE' }
问题描述
var Firebase = require(firebase);
var myFirebaseRef =新的Firebase(https://amber-fire-6500.firebaseio.com/);
$ b myFirebaseRef.createUser({
email:guosong@outlook.com,
password:12345678
},function(error){$ b $如果(错误=== null){
console.log(User created successfully);
} else {
console.log(Error creating user:,error);
}
});
这是我的代码,但是我得到了错误,显示为标题。
我发现这一步来解决这个问题,但最后我不能完成它。因为我找不到在他们的文档中提到的提供者设置。任何人都可以帮忙吗?
更新于2015年1月6日:
Firebase最近发布了Firebase Web / Node.js客户端库的v2.1.0,其中包括对Node.js中用户管理方法的支持。您现在应该可以运行包含的代码段而不会遇到 TRANSPORT_UNAVAILABLE
错误。
通过电子邮件/密码进行的Firebase身份验证目前仅限于Web /浏览器,并且在Node.js中不受支持。
var Firebase = require("firebase");
var myFirebaseRef = new Firebase("https://amber-fire-6500.firebaseio.com/");
myFirebaseRef.createUser({
email : "guosong@outlook.com",
password : "12345678"
}, function(error) {
if (error === null) {
console.log("User created successfully");
} else {
console.log("Error creating user:", error);
}
});
this is my code but I got the error as title shows.
I found this step to fix this, but finally i don't can not finish it. Because i can not find the provider settings mentioned in their document. Can anybody help?
Update Jan 6, 2015:
Firebase has recently released v2.1.0 of the Firebase Web / Node.js client library, which includes support for user management methods in Node.js. You should now be able to run the included snippet without encountering the TRANSPORT_UNAVAILABLE
error.
Firebase authentication via email / password is currently web / browser only, and not supported in Node.js.
这篇关于创建用户时出错:{[错误:没有登录传输可用于请求的方法]代码:'TRANSPORT_UNAVAILABLE'}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!