0

致命错误:未捕获 EasyPost\错误:无法完成货件购买。请联系 support@easypost.com。在 /home/adminofferzone/offerzoneusa.com/wp-content/plugins/woo-ship-labels-master/EasyPost/lib/EasyPost/Requestor.php:268 堆栈跟踪:#0 /home/adminofferzone/offerzoneusa.com/wp -content/plugins/woo-ship-labels-master/EasyPost/lib/EasyPost/Requestor.php(252): EasyPost\Requestor->handleApiError('{“error”:{“code...', 422, Array) # 1 /home/adminofferzone/offerzoneusa.com/wp-content/plugins/woo-ship-labels-master/EasyPost/lib/EasyPost/Requestor.php(123):EasyPost\Requestor->解释响应('{“错误”: {“代码...”,422)#2 /home/adminofferzone/offerzoneusa.com/wp-content/plugins/woo-ship-labels-master/EasyPost/lib/EasyPost/Shipment.php(116):EasyPost\Requestor- >request('post', '/shipments/shp...', Array) #3 /home/adminofferzone/offerzoneusa.com/wp-content/plugins/woo-ship-labels-master/label.php(46): EasyPost\Shipment->buy(Array) #4 /home /adminofferzone/offerzoneusa.com/wp-content/plugins/woo-ship-labels-master/woo 在 /home/adminofferzone/offerzoneusa.com/wp-content/plugins/woo-ship-labels-master/EasyPost/lib/ EasyPost/Requestor.php 在第 268 行

我如何解决这个问题我在easypost中添加了插件和运输标签生成器插件设置所有东西

4

1 回答 1

1

如果出现客户端或服务器错误,响应将分别包含标准的 4xx 或 5xx,并附有描述问题的格式良好的 JSON 正文(例如,省略必填字段、购买失败等)

除了其他异常情况(例如网络故障)之外,每个客户端库都会封装这些错误并引发异常。建议优雅地处理异常并将任何问题报告给 support@easypost.com。

于 2017-10-02T17:04:31.097 回答