首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >调用json.exception.parse_error::cloud::json.exception.parse_error::Client

调用json.exception.parse_error::cloud::json.exception.parse_error::Client
EN

Stack Overflow用户
提问于 2018-10-03 10:58:58
回答 1查看 260关注 0票数 1

https://github.com/GoogleCloudPlatform/google-cloud-cpp/ quickstart.cc

构建所有可用库后,运行storage_quickstart

代码语言:javascript
复制
/home/google-cloud-cpp/build-output/google/cloud/storage/examples/storage_quickstart bucket_name project_id

听好了

代码语言:javascript
复制
Standard C++ exception raised: [json.exception.parse_error.101] parse error at 1: syntax error - unexpected end of input; expected '[', '{', or a literal

误差在

代码语言:javascript
复制
namespace gcs = google::cloud::storage;
gcs::Client client;

有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-10-03 13:23:32

看起来您的GOOGLE_APPLICATION_DEFAULT_CREDENTIALS没有设置,或者指向错误格式的文件。希望这里的文档:

https://googlecloudplatform.github.io/google-cloud-cpp/latest/storage/index.html

可以帮你解决这个问题。如果您需要更多帮助,请随时打开GitHub页面中的一个bug。

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

https://stackoverflow.com/questions/52625564

复制
相关文章

相似问题

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