I’m useing tyk-gateway_2.3 now。
I have some error when i create token
error_log
time=“Jan 5 18:36:13” level=error msg=“Key creation failed.” err=“invalid character ‘"’ after object key:value pair” status=fail
create api commadn
curl -H “x-tyk-authorization: 352d20ee67be67f6340b4c0605b044b7” -s -H “Content-Type: application/json” -X POST -d ‘{
“name”: “Test API”,
“slug”: “test-api”,
“api_id”: “1”,
“org_id”: “1”,
“auth”: {
“use_param”: false,
“param_name”: “”,
“use_cookie”: false,
“cookie_name”: “”,
“auth_header_name”: “”
},
“definition”: {
“location”: “header”,
“key”: “x-api-version”
},
“version_data”: {
“not_versioned”: true,
“versions”: {
“Default”: {
“name”: “Default”,
“use_extended_paths”: true
}
}
},
“auth_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: {}
},
“proxy”: {
“listen_path”: “/test-api/”,
“target_url”: “http://test.com/”,
“strip_listen_path”: true
},
“active”: true
}’ http://10.15.207.132:8080/tyk/apis/ | python -mjson.tool
create api token command
curl -X POST -H “x-tyk-authorization: 352d20ee67be67f6340b4c0605b044b7” -s -H “Content-Type: application/json” -X POST -d ‘{
“allowance”: 1000,
“rate”: 1000,
“per”: 60,
“expires”: -1,
“quota_max”: -1,
“quota_renews”: 1406121006,
“quota_remaining”: 0,
“quota_renewal_rate”: 60,
“access_rights”: {
“1”: {
“api_name”: “Test API”,
“api_id”: “1”,
“versions”: [“Default”]
}
},
“org_id”: “1”,
“meta_data”: {},
“oauth_client_id”: “”
“oauth_keys”
“basic_auth_data”: {
“password”: “”,
“hash_type”: “”
},
“jwt_data”: {
“secret”: “”
},
“hmac_enabled”: false,
“hmac_string”: “”,
“is_inactive”: false,
“apply_policy_id”: “”
“monitor”: {
“trigger_limits”: []
},
“tags”: []
}’ http://10.15.207.132:8080/tyk/keys/create | python -mjson.tool
after api token command
{
“status”: “system error, please contact administrator”
}
How can I solve this problem?