首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >优步吃`test_specifications`不能在沙箱模式下应用

优步吃`test_specifications`不能在沙箱模式下应用
EN

Stack Overflow用户
提问于 2022-09-20 17:36:26
回答 1查看 81关注 0票数 0

在sandbox上创建一个交付 -api.uber.com(没有test_specifications)工作正常,live_mode作为false返回,表明我们处于沙箱而不是生产模式。

没有test_specifications的工作示例

代码语言:javascript
复制
{
    "pickup_address": "124 w tennesee st, tallahassee, fl, 32301",
    "dropoff_address": "124 w tennesee st, tallahassee, fl, 32301",
    "dropoff_name": "nowhere",
    "manifest": "nothing",
    "pickup_name": "nobody",
    "dropoff_phone_number": "523-123-1231",
    "pickup_phone_number": "523-123-1232"
}

但是,在添加test_specifications时,就像在机器人信使示例中一样,API用“生产请求不允许的test_specifications”进行响应,并未能创建传递。

test_specifications失败的例子

代码语言:javascript
复制
{
    "pickup_address": "124 w tennesee st, tallahassee, fl, 32301",
    "dropoff_address": "124 w tennesee st, tallahassee, fl, 32301",
    "dropoff_name": "nowhere",
    "manifest": "nothing",
    "pickup_name": "nobody",
    "dropoff_phone_number": "523-123-1231",
    "pickup_phone_number": "523-123-1232",
    "test_specifications": {
        "robo_courier_specification": {
            "mode": "auto"
        }
    }
}

优步饮食DaaS的回应:

代码语言:javascript
复制
{
    "code": "invalid_params",
    "message": "The parameters of your request were invalid.",
    "kind": "error",
    "metadata": {
        "param_details": "test_specifications not allowed for production requests"
    }
}

我们如何启用robo_courier_specification,以便在沙箱中测试webhooks?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-09-26 13:55:30

我们在优步餐的联系人为我们创建了一个新的“沙箱”账户,其行为与DaaS机器人信使的行为如出一辙。

机器人信使似乎区分了生产和沙箱帐户,这显然是邮差控制的行为。这种“沙箱仅限”的区别目前似乎在仪表板上不可见。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73790650

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档