解析云代码部署失败并显示消息“更新失败,内部错误” [英] Parse deploy of cloud code failing with message "Update failed with internal error"

查看:65
本文介绍了解析云代码部署失败并显示消息“更新失败,内部错误”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CLI版本1.4.1运行Parse云代码几个月没有任何问题。我刚刚使用CLI更新到最新版本1.4.2,但现在当我部署时,我得到了这个输出:

 正在上传源文件
完成上传文件
更新失败,内部错误

我是检查我在其他地方记录的一个问题,这是一些解析类的错误引用,如Parse.User和Parse.Installation。它看起来不像是我的问题。



除了我的几千行代码的试错之外,有没有办法找到更多关于错误的信息? :)

解决方案

上传尝试后,Parse正在解析你的代码(双关语:-)检查错误,如果发现错误,部署就会失败发现任何错误。



一种可能性是检查日志(在Core / Logs下的Dashboard中),以及Logs的Error子菜单。 / p>

另一种是运行命令 解析开发your_app 并查看终端中的所有错误。



对于大型代码,您可能想写一些如果您还没有这样做,请进行单元测试。


I've been running Parse cloud code for a few months using CLI version 1.4.1 with no problems. I just updated using the CLI to the latest version, 1.4.2, but now when I deploy I get this output:

Uploading source files
Finished uploading files
Update failed with internal error

I've checked for the one problem I see documented elsewhere, which is erroneous quotes around some parse classes like Parse.User and Parse.Installation. It doesn't look like these are my problem.

Is there any way to find out more about the error, besides trial and error with my several thousand lines of code? :)

解决方案

Upon upload attempt, Parse is parsing your code (pun intended :-) checking for errors, and deployment fails if any errors found.

One possibility is to check Logs (in your Dashboard under Core/Logs), also the Error submenu of Logs.

Another is to run the command parse develop your_app and see all the errors in your terminal.

For a large code, you probably want to write some unit tests if you aren't doing this already.

这篇关于解析云代码部署失败并显示消息“更新失败,内部错误”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆