关于我们

饿了么开放平台授权失败说明

发布时间:2025-05-27

 

个人零费用代理店+,日收入3000+,可兼职做

如果应用请求授权,得到的http code是400,或者返回值中包含error异常,需要根据下面的授权失败错误码解决问题:

error(错误码) error_description(错误描述) 错误原因&解决方案
access_denied Production resources can only be has access to online application 未上线应用不可访问生产环境资源,提交应用上线申请
access_denied The requested refresh token is expired. refresh_token已过期,未过期的话则是店铺已失效(下线、倒闭等),所以无法刷新
access_denied Please use the specified sandbox account for testing 沙箱环境只能用测试账号测试授权
access_denied Authorization is cancelled 取消授权
invalid_request Unauthorized refresh token. refresh_token不存在或者已过期。确认refresh_token是否正确,正确的话则说明refresh_token已过期,需要重新走授权流程
invalid_request The requested redirect_uri does not match the background callback url. redirect_uri和授权回调URL不匹配
invalid_request The requested response_type is required response_type参数不存在或者为空
invalid_request The requested client_id is required client_id参数不存在或者为空
invalid_request The requested redirect_uri is required redirect_uri参数不存在或者为空
invalid_request The requested scope is required scope参数不存在或者为空
invalid_scope The requested scope is invalid, value must be set to 'all' scope的值不为all
invalid_request The requested state is required state参数不存在或者为空
invalid_request The requested redirect_uri is required 没有设置回调URL地址
invalid_client Invalid client_id 错误的client_id
invalid_request Invalid Authorization header 请求头Authorization中的basic值错误
invalid_request Invalid Basic basic格式错误,解析basic头失败
invalid_request The basic syntax errors basic解析失败,key和secret的拼接格式错误
invalid_request The http requested body is required HTTP POST请求体不能为空
invalid_request The requested merchant has not yet been ordered service 尚未订购服务
invalid_request The requested refresh_token is required refresh_token不能为空
invalid_request The http requested header "Authorization" is required HTTP Authorization请求头不能为空
invalid_request The requested grant_type is required grant_type参数不能为空
invalid_request The requested code is required 授权码code不能为空
server_error Unknown system error 内部系统错误,请重试
temporarily_unavailable Exceed frequency limits 刷新Token访问超限,降低访问频次,1s 内只允许访问一次,120次/天,全局保存token,token有效期内可以重复使用,不需要每次调用接口都重新获取(appId+授权门店账号维度)
unsupported_response_type The requested response_type must be set to 'code' response_type的值不等于"code"
unsupported_grant_type Unsupported grant_type grant_type参数值错误
unsupported_grant_type The requested grant_type does not match the client authorization type grant_type和应用类型不匹配
unauthorized_client Unauthorized client client认证失败,key或secret无效
unauthorized_client Unauthorized code code认证失败,code只能使用一次
unauthorized_client Unauthorized refresh_token refresh_token无效
Unauthorized client 无效的refreshtoken 使用的refresh_token不存在。可以看下是否有插入其他字符或者为历史已归档的refresh_token
Unauthorized client redis distributed lock error,create person token error 刷新Token访问超限,1s 内只允许访问一次,降低访问频次,全局保存token,token有效期内可以重复使用,不需要每次调用接口都重新获取(appId+授权门店账号维度)
Unauthorized client 当前店铺已失效,不允许刷新token 店铺状态无效:商机无效,店铺已下线,此类门店后续恢复有效状态,需重新走授权流程

 

/template/Home/AllNew/PC/Static