gpt4 book ai didi

mashape - 哎呀,发生错误

转载 作者:行者123 更新时间:2023-12-04 18:21:08 27 4
gpt4 key购买 nike

Mashape不给我任何支持,除非它的工作时间所以我希望你能给我一些答案

我正在尝试通过我的 API 上传文件。

有谁知道为什么 mashape 会产生这种错误?这意味着什么或如何解决或避免它。它不是来 self 的服务器。而且这不是我的 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 (╯°□°)╯ means

最佳答案

我目前正在发生此错误。此特定错误响应来自 maspahe 代理,而不是底层服务。提交了帮助票。

关于mashape - 哎呀,发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32170470/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com