rest-10016 报错access denied because the input token = ‘’ is valid

创建图代码:

CREATE VERTEX person (PRIMARY_ID user_id UINT, name STRING, age UINT, gender STRING)
CREATE UNDIRECTED EDGE friendship (FROM person, TO person, connect_day DATETIME)
BEGIN
CREATE LOADING JOB load_social FOR GRAPH social {
DEFINE FILENAME file1="/home/tigergraph/person.csv";
DEFINE FILENAME file2="/home/tigergraph/friendship.csv";
      LOAD file1 TO VERTEX person VALUES ($"user_id", $"name", $"age", $"gender") USING header="true", separator=",";
      LOAD file2 TO EDGE friendship VALUES ($0, $1, $2) USING header="true", separator=",";
   }
   END

访问链接: http://localhost:9000/graph/social/vertices/person?limit=3 | python -m json.tool
报错:
rest-10016
access denied because the input token = ‘’ is valid
补充,token已经建立secret别名hh

请问这个报错指的是什么

如果已经建立了secret,可以参考https://docs.tigergraph.com/dev/restpp-api/restpp-requests#rest-authentication,将secret加到url里面。

user_id name age gender
3507021999 MRAAA 20 man
3507022000 MRSBB 18 female
请问下我上面那个建表模式下这两个数据的json格式应该怎么填写,看你们的帮助文档写出来的不认可,老报属性不认可

您是要做什么操作?

用restpp导入数据到tg

有两种方案:
一种是导入csv文件,通过gsql写loading job,再用restpp接口执行loading job即可导入。
另外一种是用upsert的restpp,详参https://docs.tigergraph.com/dev/restpp-api/built-in-endpoints#post-graph-graph_name-upsert-the-given-data

那导出方案有哪些,可以导出CSV嘛,同样是用restpp

可以写query将结果输出到csv中,然后使用restpp调用query。
在query中将结果输出到csv的方法见https://docs.tigergraph.com/dev/gsql-ref/querying/output-statements-and-file-objects

如何在restpp的URL中指定用哪个query,因为有很多个query

请参考https://docs.tigergraph.com/ui/graphstudio/write-queries#TigerGraphGraphStudioUIGuide-QueryEditingPanel,在GraphStudio的query中,点击地球(Show query endpoint)按钮。