详细介绍Google Sheets API异常的资源 [英] Resource detailing Google Sheets API exceptions

查看:58
本文介绍了详细介绍Google Sheets API异常的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有python的Google Sheets API,以在我的代码收集数据时将数据上传到电子表格.在测试过程中,我遇到了一些错误,这些错误似乎是由于连接不良或中断所致,这在某种程度上可以从追溯中得到证明,并且重新运行相同的代码而不进行任何更改都可以正常工作.

I'm using the google sheets API with python to upload data to a spreadsheet as my code collects it. I have encountered a few errors while testing that seemed to be due to a bad connection or an interruption as evidenced somewhat by the traceback and that re-running the same code without any changes works fine.

我的问题是,在哪里可以找到详细说明使用此API可能遇到的错误类型的资源,以便捕获上述错误?我在文档中进行了搜索,但找不到描述错误类型以及如何捕获该错误类型的文档.

My question is where can I find a resource that details the types of errors I could encounter using this API, so that I can catch errors like those described above? I've searched through the documentation, but haven't been able to find one that describes the error type and how to catch it.

提前感谢您的帮助!

推荐答案

您可能要检查此页面.也基于此链接,错误信息分为两个级别, HTTP错误代码和标头中的消息 响应正文中的JSON对象以及其他信息可以帮助您确定如何处理错误的详细信息 .检查页面,该页面提供了错误的参考,并提供了有关如何在应用中处理错误的一些指导.

You may want to check the list of errors in this page. Also based from this link, there are two levels of error information, HTTP error codes and messages in the header and A JSON object in the response body with additional details that can help you determine how to handle the error. Check the page which provides a reference of errors, with some guidance on how to handle them in your app.

这篇关于详细介绍Google Sheets API异常的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆