GetBase API return 缺少翻译:en-US.activerecord.errors.models.deal.attributes.base.upgrade_required
GetBase API return translation missing: en-US.activerecord.errors.models.deal.attributes.base.upgrade_required
我正在使用 Base Api with oAuth 2.0 authentication. As per the API, I need to POST json data to create anything through the api. Things working fine. I can get/create contacts as per their documentation. But when I want to create a Deal Ref: Deal Api Doc,我遇到了一些错误。
错误
{
"meta": {
"http_status": "422 Unprocessable Entity",
"type": "errors",
"logref": "aech0-3arq9-kgulg-4sd10",
"links": {
"more_info": "https://developers.getbase.com/docs/rest/articles/errors"
}
},
"errors": [
{
"error": {
"resource": "deal",
"code": "domain_error",
"message": "translation missing: en-US.activerecord.errors.models.deal.attributes.base.upgrade_required"
},
"meta": {
"links": {
"more_info": "https://developers.getbase.com/docs/rest/articles/errors"
},
"type": "error"
}
}
]
}
我正在尝试 POST 的数据是:
{"data":{"name":"VTB Test Deal","value":5,"contact_id":26857049,
"custom_fields":{"website":"http:\/\/vtb.dev"}},
"meta":{"type":"deal"}}
不幸的是,他们的文档中没有关于此错误的任何内容。我试图搜索这个错误,我得到的唯一线索是,它可能与 RubyOnRails 和国际化有关。
我正在使用的应用程序基于 Laravel 5。
这是 Base API 中的一个错误,我们已经修复了它。现在应该 return 一条正确的错误消息。
您的 Base 帐户似乎是免费计划。该计划有 50 笔交易限制。您需要将您的帐户升级为付费计划,以取消限制。如果您对 API 或升级有任何疑问,请联系支持@getbase.com。
免责声明:我是 Base 员工。
我正在使用 Base Api with oAuth 2.0 authentication. As per the API, I need to POST json data to create anything through the api. Things working fine. I can get/create contacts as per their documentation. But when I want to create a Deal Ref: Deal Api Doc,我遇到了一些错误。
错误
{
"meta": {
"http_status": "422 Unprocessable Entity",
"type": "errors",
"logref": "aech0-3arq9-kgulg-4sd10",
"links": {
"more_info": "https://developers.getbase.com/docs/rest/articles/errors"
}
},
"errors": [
{
"error": {
"resource": "deal",
"code": "domain_error",
"message": "translation missing: en-US.activerecord.errors.models.deal.attributes.base.upgrade_required"
},
"meta": {
"links": {
"more_info": "https://developers.getbase.com/docs/rest/articles/errors"
},
"type": "error"
}
}
]
}
我正在尝试 POST 的数据是:
{"data":{"name":"VTB Test Deal","value":5,"contact_id":26857049,
"custom_fields":{"website":"http:\/\/vtb.dev"}},
"meta":{"type":"deal"}}
不幸的是,他们的文档中没有关于此错误的任何内容。我试图搜索这个错误,我得到的唯一线索是,它可能与 RubyOnRails 和国际化有关。
我正在使用的应用程序基于 Laravel 5。
这是 Base API 中的一个错误,我们已经修复了它。现在应该 return 一条正确的错误消息。
您的 Base 帐户似乎是免费计划。该计划有 50 笔交易限制。您需要将您的帐户升级为付费计划,以取消限制。如果您对 API 或升级有任何疑问,请联系支持@getbase.com。
免责声明:我是 Base 员工。