go sdk的问题

问题1:
scope指定了: 之后就报错误:{"error":"bad token"}
scope只指定就没有错误。为什么?

问题2:
目录src/github.com/qiniu/api/rs下,填好了ak,sk,bucketName,domain之后,执行 go test,报错:
--- FAIL: TestEntry (0.33s)
rs_api_test.go:74: {"error":"","reqid":"4FcAAK-3snaLN70T","details":["RS/403"],"code":403}
--- FAIL: TestGetPrivateUrl (0.30s)
panic: runtime error: slice bounds out of range [recovered]
panic: runtime error: slice bounds out of range

查看回复