Mashape除非工作时间,否则不给我任何支持,所以我希望你能给我一些答案
我正在尝试通过我的API上传文件。
任何人都知道为什么mashape会产生这种错误?这意味着什么或如何解决或避免它。它不是来自我的服务器。而且这不是我的API会回归的东西。直接向我的API发出请求就可以了!
[body] => {"message":"Ops, an error occurred (╯°□°)╯"}
[status] => 500 Internal Server Error
[headers] =>
access-control-allow-credentials:true
Connection:keep-alive
Content-Length:54
Content-Type:application/json
Date:Sun, 23 Aug 2015 18:34:27 GMT
Server:Mashape/5.0.6
X-Mashape-Proxy-Response:true
对我而言似乎是Mashapes代理的问题?
修改
更多调查显示,它与尺寸
有关var content = "kokokoko".repeat(1200); // Uploading a small file works fine
// var content = "kokokoko".repeat(1300); // Uploading a larger file produce the error above
var fd = new FormData();
fd.append("format", 'ttf');
fd.append("file", new Blob([content]), "filename.ext");
$.ajax({
url: 'https://ofc.p.mashape.com/directConvert/',
headers: {'X-Mashape-Key': 'xxxxx'},
method:"post",
data: fd,
cache: false,
contentType: false,
processData: false,
})
编辑2
它现在有效,但仍然没有解释消息Ops, an error occurred (╯°□°)╯
意味着
答案 0 :(得分:0)
我目前正在发生此错误。此特定错误响应来自maspahe代理,而不是基础服务。提交了帮助票。