1. 首页
  2. 数据库
  3. 其它
  4. gcp_error_handler:解码GCP错误详细信息 源码

gcp_error_handler:解码GCP错误详细信息 源码

上传者: 2021-04-20 16:07:37上传 ZIP文件 416.56KB 热度 13次
解码GCP错误详细信息 本文介绍了如何提取和使用Google Cloud API提供的嵌入式错误消息。 作为背景,这里列举了一些您可能会在REST api调用中看到的格式化错误: A)如果您列出pubsub主题但没有权限,则会看到 curl -s -H " Authorization: Bearer `gcloud auth print-access-token` " https://pubsub.googleapis.com/v 1 /projects/fabled-ray -104117 /topics { " error " : { " code " : 403 , " message " : " User not authorized to perform this action. " , " status " : " PERMISSION_DENI
下载地址
用户评论