1
它工作时,我在本地PC上测试它,用户可以登录/注销没有任何问题。 后来我部署在移动使用此命令的应用程序:Meteor.loginWithPassword返回错误404“方法'登录'找不到'
meteor run android-device --mobile-server myapp.herokuapp.com
当用户点击登录上移动,Meteor.loginWithPassword返回此:
errorClass {error: 404, reason: "Method 'login' not found", details: undefined, message: "Method 'login' not found [404]", errorType: "Meteor.Error"}
什么可能是错误的“登录”?为什么在手机上找不到? 任何人都可以帮忙。
我认为你还需要指定 - 移动服务器哪一个URL可以在你的移动设备上访问,也许如果你在同一个WiFi网络,那么IP地址,例如192.168.1.4:3000或任何地址是 – Guns
我指定--mobile-server myapp.herokuapp.com,但不知何故Meteor.loginWithPassword返回错误404,说'登录'方法没有找到 – Kagawa
你可以把--debug和确认什么是调试日志 – Guns