Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana v6.7.2添加datasource报错“assignment to undeclared variable c3” #22

Open
yzcfan opened this issue Apr 11, 2020 · 5 comments

Comments

@yzcfan
Copy link

yzcfan commented Apr 11, 2020

按文档操作(https://www.alibabacloud.com/help/zh/doc-detail/109434.htm),Save & Test时候报错“assignment to undeclared variable c3”(浏览器Firefox),Chrome报的是“
c3 is not defined”。
是不是我Grafana版本太新了?
222111

@yzcfan
Copy link
Author

yzcfan commented Apr 11, 2020

使用Base64加密了AK/SK后,不再报C3的错误了。报错变成“HTTP Error Not Found”。
image
看了下header里的信息,发现和阿里云正常调用的API比较,只有SignatureNonce这里看起来不一样。能调用的API SignatureNonce是一串很长的数字加字母的,页面异常里看到的SignatureNonce是纯数字的,较短。

@yzcfan
Copy link
Author

yzcfan commented Apr 13, 2020

使用Base64加密了AK/SK后,不再报C3的错误了。报错变成“HTTP Error Not Found”。
image
看了下header里的信息,发现和阿里云正常调用的API比较,只有SignatureNonce这里看起来不一样。能调用的API SignatureNonce是一串很长的数字加字母的,页面异常里看到的SignatureNonce是纯数字的,较短。

在阿里工程师的帮助下已解决。原因是我用的base64加密方法不严谨
echo "明文" | base64。这种方式默认会加上一个换行符。echo -n就OK了。

@jedjann
Copy link

jedjann commented May 4, 2020

Issue same with me.
using grafana version Grafana v6.5.2 (commit: 742d165)
image

@yzcfan
Copy link
Author

yzcfan commented May 6, 2020

Issue same with me.
using grafana version Grafana v6.5.2 (commit: 742d165)
image

try to encrypt AccessKeyId & AccessKey with base64

@Zhang21
Copy link

Zhang21 commented Jun 19, 2020

echo -n "ak" | base64
echo -n "sk" | base64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants