Test new API, return 404 page not found

Before 10 days ago, I create API have test ok(use the old targer URL). Today have use new Targert URL(https://httpbin.org/get) to test API,found test 404 not found.
import information : the target url is valid url.

test curl as : curl -X GET -H ‘Authorization: 5b6a9a6ae138230df675f3c0339a436f58424eef96e4aebc105c9cb7’ -i ‘http://127.0.0.1:8080/testapi4/’ or curl -X GET -H ‘Authorization: 5b6a9a6ae138230df675f3c0339a436f58424eef96e4aebc105c9cb7’ -i ‘http://10.4.2.98:8080/testapi4/

The request and resoponse detail as follow:
Request content:
GET /testapi4/ HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Authorization: 5b6a9a6ae138230df675f3c0339a436f58424eef96e4aebc105c9cb7
Cookie: csrf_token=1Qaco0XvTi/R0iwXcSeG8gPMhVMFkozP5zXsCV1Emuw=; authorisation=482f9dd2-818c-42ec-7c1c-b089383b88a2
Request content:
HTTP/1.1 404 NOT FOUND
Content-Length: 233
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/html
Date: Fri, 24 Aug 2018 03:04:16 GMT
Server: gunicorn/19.9.0
Via: 1.1 vegur
X-Ratelimit-Limit: -1
X-Ratelimit-Remaining: -1
X-Ratelimit-Reset: 1535076000

404 Not Found

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

I have check the tyk.conf file, not found change content.
How can I check this error and solve it ?

Thanks ,
Meisheng.

The tyk.conf as follow:
{
“listen_port”: 8080,
“node_secret”: “352d20ee67be67f6340b4c0605b044b7”,
“secret”: “352d20ee67be67f6340b4c0605b044b7”,
“template_path”: “/opt/tyk-gateway/templates”,
“use_db_app_configs”: true,
“db_app_conf_options”: {
“connection_string”: “”,
“node_is_segmented”: false,
“tags”: []
},
“disable_dashboard_zeroconf”: false,
“app_path”: “/opt/tyk-gateway/apps”,
“middleware_path”: “/opt/tyk-gateway/middleware”,
“storage”: {
“type”: “redis”,
“host”: “localhost”,
“port”: 6379,
“username”: “”,
“password”: “”,
“database”: 0,
“optimisation_max_idle”: 2000,
“optimisation_max_active”: 4000
},
“enable_analytics”: true,
“analytics_config”: {
“type”: “”,
“ignored_ips”: [],
“enable_detailed_recording”: true,
“enable_geo_ip”: false,
“geo_ip_db_path”: “”,
“normalise_urls”: {
“enabled”: true,
“normalise_uuids”: true,
“normalise_numbers”: true,
“custom_patterns”: []
}
},
“health_check”: {
“enable_health_checks”: false,
“health_check_value_timeouts”: 60
},
“optimisations_use_async_session_write”: true,
“allow_master_keys”: false,
“policies”: {
“policy_source”: “service”,
“policy_connection_string”: “”,
“policy_record_name”: “tyk_policies”,
“allow_explicit_policy_id”: true
},
“hash_keys”: true,
“suppress_redis_signal_reload”: false,
“use_redis_log”: true,
“close_connections”: false,
“enable_non_transactional_rate_limiter”: true,
“enable_sentinel_rate_limiter”: false,
“experimental_process_org_off_thread”: false,
“local_session_cache”: {
“disable_cached_session_state”: false
},
“http_server_options”: {
“enable_websockets”: true
},
“uptime_tests”: {
“disable”: false,
“config”: {
“enable_uptime_analytics”: true,
“failure_trigger_sample_size”: 2,
“time_wait”: 10,
“checker_pool_size”: 50
}
},
“hostname”: “”,
“enable_custom_domains”: true,
“enable_jsvm”: true,
“oauth_redirect_uri_separator”: “;”,
“coprocess_options”: {
“enable_coprocess”: false,
“coprocess_grpc_server”: “”
},
“pid_file_location”: “./tyk-gateway.pid”,
“allow_insecure_configs”: true,
“public_key_path”: “”,
“close_idle_connections”: false,
“allow_remote_config”: false,
“enable_bundle_downloader”: true,
“bundle_base_url”: “”,
“global_session_lifetime”: 100,
“force_global_session_lifetime”: false,
“max_idle_connections_per_host”: 500
}

the Gateway log as follow:
Aug 24 10:21:01 localhost rsyslogd: [origin software=“rsyslogd” swVersion=“8.24.0” x-pid=“1083” x-info=“http://www.rsyslog.com”] rsyslogd was HUPed
Aug 24 10:30:01 localhost systemd: Started Session 26 of user root.
Aug 24 10:30:01 localhost systemd: Starting Session 26 of user root.
Aug 24 10:32:22 localhost systemd: Stopping Tyk API Dashboard…
Aug 24 10:32:22 localhost systemd: Started Tyk API Dashboard.
Aug 24 10:32:22 localhost systemd: Starting Tyk API Dashboard…
Aug 24 10:32:22 localhost tyk: time=“Aug 24 10:32:22” level=warning msg=“dashboard is down? Heartbeat is failing”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Using /opt/tyk-dashboard/tyk_analytics.conf for configuration”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“connecting to MongoDB: [127.0.0.1]”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“mongo connection established”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Creating new Redis connection pool”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Creating new Redis connection pool”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Creating new Redis connection pool”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Creating new Redis connection pool”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Adding available nodes…”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Tyk Analytics Dashboard v1.7.0”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Copyright Martin Buhr 2016”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“https://www.tyk.io
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Listening on port: 3000”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Registering nodes…”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Adding available nodes…”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Creating new Redis connection pool”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Socket server started”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“–> Standard listener (http) for UI notifications” addr=“:5000”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“–> Standard listener (http) for dashboard and API”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Starting zeroconf heartbeat”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Starting notification handler for gateway cluster”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Loading routes…”
Aug 24 10:32:22 localhost tyk-analytics: time=“Aug 24 10:32:22” level=info msg=“Generating portal for: tyk.com
Aug 24 10:32:24 localhost tyk-analytics: time=“Aug 24 10:32:24” level=info msg=“Got configuration for nodeID: cead9e69-1d86-47aa-68c1-24e6cdb69146|localhost.localdomain”
Aug 24 10:32:35 localhost systemd: Stopping Tyk Pump to move analytics data from Redis to any supported back end…
Aug 24 10:32:35 localhost systemd: Started Tyk Pump to move analytics data from Redis to any supported back end.
Aug 24 10:32:35 localhost systemd: Starting Tyk Pump to move analytics data from Redis to any supported back end…
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“## Tyk Analytics Pump, v0.5.3 ##”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“-- No max batch size set, defaulting to 10MB”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“-- No max document size set, defaulting to 10MB”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“Init Pump: MongoDB Pump”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“Init Pump: MongoDB Aggregate Pump”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“-- No max batch size set, defaulting to 10MB”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“-- No max document size set, defaulting to 10MB”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“Init Uptime Pump: MongoDB Pump”
Aug 24 10:32:35 localhost tyk-pump: time=“Aug 24 10:32:35” level=info msg=“Starting purge loop @10(s)”
Aug 24 10:32:45 localhost tyk-pump: time=“Aug 24 10:32:45” level=warning msg=“Connection dropped, connecting…”
Aug 24 10:32:45 localhost tyk-pump: time=“Aug 24 10:32:45” level=warning msg=“Connection dropped, connecting…”
Aug 24 10:32:52 localhost systemd: Stopping Tyk API Gateway…
Aug 24 10:32:52 localhost tyk: 2018/08/24 10:32:52 terminated
Aug 24 10:32:52 localhost tyk: time=“Aug 24 10:32:52” level=info msg=“Stop signal received.”
Aug 24 10:32:52 localhost tyk: time=“Aug 24 10:32:52” level=info msg=“Stopping heartbeat…”
Aug 24 10:32:52 localhost tyk: time=“Aug 24 10:32:52” level=info msg=“Stopped Heartbeat”
Aug 24 10:32:54 localhost tyk: time=“Aug 24 10:32:54” level=info msg=Terminating.
Aug 24 10:32:55 localhost systemd: Started Tyk API Gateway.
Aug 24 10:32:55 localhost systemd: Starting Tyk API Gateway…
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Setting up analytics normaliser”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“PIDFile location set to: ./tyk-gateway.pid”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Initialising Tyk REST API Endpoints”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=warning msg=“File descriptor limit 1024 too low for production use. Min 80000 recommended.\n\tThis could have a significant negative impact on performance.\n\tPlease refer to //tyk.io/docs/planning-for-production/ for further guidance.”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Redis connection pools are ready after number of retires” currRetry=0
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Redis connection pools are ready”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“–> Standard listener (http)” port=“:8080”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Setting up Server”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Registering node.”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Node registered” id=cead9e69-1d86-47aa-68c1-24e6cdb69146
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Gateway started (v2.7.0)”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Initialising distributed rate limiter”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“–> Listening on address: (open interface)”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“–> Listening on port: 8080”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“–> PID: 6949”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading policies”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Using Policies from Dashboard Service”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Mutex lock acquired… calling”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Calling dashboard service for policy list”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Starting gateway rate limiter notifications…”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Processing policy list”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Policies found (1 total):”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=" - 5b752da2e138231021b8aead"
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=error msg=“Could not parse expiry date for API” Expires=“01/02/3000” error=“parsing time "01/02/3000" as "2006-01-02 15:04": cannot parse "2/3000" as "2006"”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Detected 5 APIs”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Preparing new router”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Initialising Tyk REST API Endpoints”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading API configurations.”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Tracking hostname” api_name=TestTykAPI2 domain=“10.4.2.98:8080”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Tracking hostname” api_name=TestApi-6 domain=“(no host)”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Tracking hostname” api_name=TestApi1 domain=10.4.2.98
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Tracking hostname” api_name=TestApi3 domain=“(no host)”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Tracking hostname” api_name=TestApi4 domain=“(no host)”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Sub-router created for domain” domain=“10.4.2.98:8080”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Sub-router created for domain” domain=10.4.2.98
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading API” api_name=TestApi4
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading API” api_name=TestApi-6
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading API” api_name=TestTykAPI2
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading API” api_name=TestApi1
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading API” api_name=TestApi3
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Checking security policy: Token” api_name=TestApi4
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loaded: TestApi4” api_id=c2ae8e6e3e0b4de350a7639781bcb9fa org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Checking security policy: Open” api_name=TestApi-6
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loaded: TestApi-6” api_id=c652d5bb981c460c506ecf02ace96ccc org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Checking security policy: Open” api_name=TestTykAPI2
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loaded: TestTykAPI2” api_id=ae4a395744ee490449adceeb8d77a681 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Checking security policy: Token” api_name=TestApi1
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loaded: TestApi1” api_id=4864fb9e35bf43f679167da6341fc277 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Checking security policy: Open” api_name=TestApi3
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loaded: TestApi3” api_id=3554fe37244c47c24e0a780e928cfda2 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Processed and listening on: /Test-Tyk-API2/{rest:.}"
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg="Processed and listening on: /testapi-6/{rest:.
}”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Processed and listening on: /testapi1/{rest:.}"
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg="Processed and listening on: /testapi3/{rest:.
}”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Processed and listening on: /testapi4/{rest:.*}”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Loading uptime tests…”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“Initialised API Definitions”
Aug 24 10:32:55 localhost tyk: time=“Aug 24 10:32:55” level=info msg=“API reload complete”
Aug 24 10:32:56 localhost tyk: time=“Aug 24 10:32:56” level=warning msg=“Insecure configuration detected (allowing)!”
Aug 24 10:32:58 localhost tyk-analytics: time=“Aug 24 10:32:58” level=info msg=“Sending config request for node: cead9e69-1d86-47aa-68c1-24e6cdb69146-localhost.localdomain”
Aug 24 10:32:58 localhost tyk-analytics: time=“Aug 24 10:32:58” level=info msg=“Got configuration for nodeID: cead9e69-1d86-47aa-68c1-24e6cdb69146|localhost.localdomain”
Aug 24 10:33:15 localhost tyk: time=“Aug 24 10:33:15” level=info msg=“Starting Poller”
Aug 24 10:33:15 localhost tyk-pump: time=“Aug 24 10:33:15” level=info msg=“Writing 1 records”
Aug 24 10:33:15 localhost tyk-pump: time=“Aug 24 10:33:15” level=info msg=“Purging 1 records”

Hi, can you share your API definition?

hi, matiash, the API definition as follow:
{
“id”: “5b6e59fbe138230ada8805ca”,
“name”: “TestApi4”,
“slug”: “testapi4”,
“api_id”: “c9338e8eceec4c057e137fae18e17f9a”,
“org_id”: “5b6a9a6ae138230df675f3c0”,
“use_keyless”: false,
“use_oauth2”: false,
“use_openid”: false,
“openid_options”: {
“providers”: [],
“segregate_by_client”: false
},
“oauth_meta”: {
“allowed_access_types”: [],
“allowed_authorize_types”: [],
“auth_login_redirect”: “”
},
“auth”: {
“use_param”: false,
“param_name”: “”,
“use_cookie”: false,
“cookie_name”: “”,
“auth_header_name”: “Authorization”,
“use_certificate”: false
},
“use_basic_auth”: false,
“use_mutual_tls_auth”: false,
“client_certificates”: [],
“upstream_certificates”: {},
“pinned_public_keys”: {},
“enable_jwt”: false,
“use_standard_auth”: true,
“enable_coprocess_auth”: false,
“jwt_signing_method”: “”,
“jwt_source”: “”,
“jwt_identity_base_field”: “”,
“jwt_client_base_field”: “”,
“jwt_policy_field_name”: “”,
“jwt_disable_issued_at_validation”: false,
“jwt_disable_expires_at_validation”: false,
“jwt_disable_not_before_validation”: false,
“notifications”: {
“shared_secret”: “”,
“oauth_on_keychange_url”: “”
},
“enable_signature_checking”: false,
“hmac_allowed_clock_skew”: -1,
“base_identity_provided_by”: “”,
“definition”: {
“location”: “header”,
“key”: “x-api-version”,
“strip_path”: false
},
“version_data”: {
“not_versioned”: true,
“default_version”: “”,
“versions”: {
“Default”: {
“name”: “Default”,
“expires”: “”,
“paths”: {
“ignored”: [],
“white_list”: [],
“black_list”: []
},
“use_extended_paths”: true,
“extended_paths”: {},
“global_headers”: {},
“global_headers_remove”: [],
“global_size_limit”: 0,
“override_target”: “”
}
}
},
“uptime_tests”: {
“check_list”: [],
“config”: {
“expire_utime_after”: 0,
“service_discovery”: {
“use_discovery_service”: false,
“query_endpoint”: “”,
“use_nested_query”: false,
“parent_data_path”: “”,
“data_path”: “”,
“port_data_path”: “”,
“target_path”: “”,
“use_target_list”: false,
“cache_timeout”: 60,
“endpoint_returns_list”: false
},
“recheck_wait”: 0
}
},
“proxy”: {
“preserve_host_header”: false,
“listen_path”: “/testapi4/”,
“target_url”: “http://10.4.2.124:8080/rateinfo/infor”,
“strip_listen_path”: false,
“enable_load_balancing”: false,
“target_list”: [],
“check_host_against_uptime_tests”: false,
“service_discovery”: {
“use_discovery_service”: false,
“query_endpoint”: “”,
“use_nested_query”: false,
“parent_data_path”: “”,
“data_path”: “”,
“port_data_path”: “”,
“target_path”: “”,
“use_target_list”: false,
“cache_timeout”: 0,
“endpoint_returns_list”: false
},
“transport”: {
“ssl_ciphers”: [],
“ssl_min_version”: 0,
“proxy_url”: “”
}
},
“disable_rate_limit”: false,
“disable_quota”: false,
“custom_middleware”: {
“pre”: [],
“post”: [],
“post_key_auth”: [],
“auth_check”: {
“name”: “”,
“path”: “”,
“require_session”: false
},
“response”: [],
“driver”: “”,
“id_extractor”: {
“extract_from”: “”,
“extract_with”: “”,
“extractor_config”: {}
}
},
“custom_middleware_bundle”: “”,
“cache_options”: {
“cache_timeout”: 60,
“enable_cache”: true,
“cache_all_safe_requests”: false,
“cache_response_codes”: [],
“enable_upstream_cache_control”: false,
“cache_control_ttl_header”: “”
},
“session_lifetime”: 0,
“active”: true,
“auth_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: {}
},
“session_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: {}
},
“event_handlers”: {
“events”: {}
},
“enable_batch_request_support”: false,
“enable_ip_whitelisting”: false,
“allowed_ips”: [],
“enable_ip_blacklisting”: false,
“blacklisted_ips”: [],
“dont_set_quota_on_create”: false,
“expire_analytics_after”: 0,
“response_processors”: [],
“CORS”: {
“enable”: false,
“allowed_origins”: [],
“allowed_methods”: [],
“allowed_headers”: [],
“exposed_headers”: [],
“allow_credentials”: false,
“max_age”: 24,
“options_passthrough”: false,
“debug”: false
},
“domain”: “”,
“do_not_track”: false,
“tags”: [],
“enable_context_vars”: false,
“config_data”: {},
“tag_headers”: [],
“global_rate_limit”: {
“rate”: 1000,
“per”: 100
},
“strip_auth_data”: false
}

Your API definition looks ok, can you try the following steps?

  1. Stop the gateway.
  2. Set the environment variable TYK_LOGLEVEL to debug.
  3. Start the gateway.
  4. Trigger a request using curl.
  5. Share the log.

hi, matisab, thank you for you suggestion. I have solve the problem, when select the button for "Strip the listen path ", it test API ok.

curl -X GET -H ‘tyk-api-key: 5b6a9a6e851c4c208b249f9917434113’ -i ‘http://10.4.2.98:8080/testapi5/

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Fri, 24 Aug 2018 06:20:12 GMT
Vary: Origin
X-Ratelimit-Limit: -1
X-Ratelimit-Remaining: -1
X-Ratelimit-Reset: 1535090797
Content-Length: 184

{“ls_Ccy_Cde”:“USD”,“ls_Relvt_Ccy_Cde”:“HKD”,“lbd_Mid”:8.36077048,“lbd_Bid”:8.01541769,“lbd_Ask”:8.34525018,“ls_Feed_Source”:“BLOOMBERG”,“lts_Last_Date”:“2018-08-24T06:20:12.945+0000”}

By the way, I want the use CORS method to call the API in external computer, but i set the CORS Options, it can’t sent the request ,Can you help me check .the API definition as follow:

{
“id”: “5b7fa038e138230afc2f8c91”,
“name”: “TestApi5”,
“slug”: “testapi5”,
“api_id”: “1157755ac903493f53b8d2fcb5ca11a9”,
“org_id”: “5b6a9a6ae138230df675f3c0”,
“use_keyless”: false,
“use_oauth2”: false,
“use_openid”: false,
“openid_options”: {
“providers”: [],
“segregate_by_client”: false
},
“oauth_meta”: {
“allowed_access_types”: [],
“allowed_authorize_types”: [],
“auth_login_redirect”: “”
},
“auth”: {
“use_param”: false,
“param_name”: “”,
“use_cookie”: false,
“cookie_name”: “”,
“auth_header_name”: “tyk-api-key”,
“use_certificate”: false
},
“use_basic_auth”: false,
“use_mutual_tls_auth”: false,
“client_certificates”: [],
“upstream_certificates”: {},
“pinned_public_keys”: {},
“enable_jwt”: false,
“use_standard_auth”: true,
“enable_coprocess_auth”: false,
“jwt_signing_method”: “”,
“jwt_source”: “”,
“jwt_identity_base_field”: “”,
“jwt_client_base_field”: “”,
“jwt_policy_field_name”: “”,
“jwt_disable_issued_at_validation”: false,
“jwt_disable_expires_at_validation”: false,
“jwt_disable_not_before_validation”: false,
“notifications”: {
“shared_secret”: “”,
“oauth_on_keychange_url”: “”
},
“enable_signature_checking”: false,
“hmac_allowed_clock_skew”: -1,
“base_identity_provided_by”: “”,
“definition”: {
“location”: “header”,
“key”: “x-api-version”,
“strip_path”: false
},
“version_data”: {
“not_versioned”: true,
“default_version”: “”,
“versions”: {
“Default”: {
“name”: “Default”,
“expires”: “”,
“paths”: {
“ignored”: [],
“white_list”: [],
“black_list”: []
},
“use_extended_paths”: true,
“extended_paths”: {},
“global_headers”: {},
“global_headers_remove”: [],
“global_size_limit”: 0,
“override_target”: “”
}
}
},
“uptime_tests”: {
“check_list”: [],
“config”: {
“expire_utime_after”: 0,
“service_discovery”: {
“use_discovery_service”: false,
“query_endpoint”: “”,
“use_nested_query”: false,
“parent_data_path”: “”,
“data_path”: “”,
“port_data_path”: “”,
“target_path”: “”,
“use_target_list”: false,
“cache_timeout”: 60,
“endpoint_returns_list”: false
},
“recheck_wait”: 0
}
},
“proxy”: {
“preserve_host_header”: false,
“listen_path”: “/testapi5/”,
“target_url”: “http://10.4.2.96:8080/rateinfo/infor”,
“strip_listen_path”: true,
“enable_load_balancing”: false,
“target_list”: [],
“check_host_against_uptime_tests”: false,
“service_discovery”: {
“use_discovery_service”: false,
“query_endpoint”: “”,
“use_nested_query”: false,
“parent_data_path”: “”,
“data_path”: “”,
“port_data_path”: “”,
“target_path”: “”,
“use_target_list”: false,
“cache_timeout”: 0,
“endpoint_returns_list”: false
},
“transport”: {
“ssl_ciphers”: [],
“ssl_min_version”: 0,
“proxy_url”: “”
}
},
“disable_rate_limit”: false,
“disable_quota”: false,
“custom_middleware”: {
“pre”: [],
“post”: [],
“post_key_auth”: [],
“auth_check”: {
“name”: “”,
“path”: “”,
“require_session”: false
},
“response”: [],
“driver”: “”,
“id_extractor”: {
“extract_from”: “”,
“extract_with”: “”,
“extractor_config”: {}
}
},
“custom_middleware_bundle”: “”,
“cache_options”: {
“cache_timeout”: 240,
“enable_cache”: true,
“cache_all_safe_requests”: false,
“cache_response_codes”: [],
“enable_upstream_cache_control”: false,
“cache_control_ttl_header”: “”
},
“session_lifetime”: 0,
“active”: true,
“auth_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: {}
},
“session_provider”: {
“name”: “”,
“storage_engine”: “”,
“meta”: {}
},
“event_handlers”: {
“events”: {}
},
“enable_batch_request_support”: false,
“enable_ip_whitelisting”: false,
“allowed_ips”: [],
“enable_ip_blacklisting”: false,
“blacklisted_ips”: [],
“dont_set_quota_on_create”: false,
“expire_analytics_after”: 0,
“response_processors”: [],
“CORS”: {
“enable”: true,
“allowed_origins”: [
“*”
],
“allowed_methods”: [
“GET”,
“POST”,
“OPTIONS”
],
“allowed_headers”: [
“tyk-api-key”
],
“exposed_headers”: [],
“allow_credentials”: true,
“max_age”: 24,
“options_passthrough”: true,
“debug”: false
},
“domain”: “”,
“do_not_track”: false,
“tags”: [],
“enable_context_vars”: false,
“config_data”: {},
“tag_headers”: [],
“global_rate_limit”: {
“rate”: 2000,
“per”: 198
},
“strip_auth_data”: false
}

hi, how to “Set the environment variable TYK_LOGLEVEL to debug”? in tyk.conf and tyk_analytics.conf files not found parameter “Loglevel”.

If you want to set the log level using tyk.conf, add this field:

"log_level": "debug"
1 Like

after restart, log detail as follow:
tyk: time=“Aug 24 18:00:12” level=debug msg=“Setting up analytics DB connection”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Connecting to redis cluster”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Creating new Redis connection pool”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Analytics pool workers number” ps=50
tyk: time=“Aug 24 18:00:12” level=debug msg=“Analytics total buffer (channel) size” recordsBufferSize=1000
tyk: time=“Aug 24 18:00:12” level=debug msg=“Analytics pool worker buffer size” workerBufferSize=20
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Error trying to get value:redigo: nil returned”
tyk: time=“Aug 24 18:00:12” level=debug msg=“No Primary instance found, assuming control”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:12” level=info msg=“Starting Poller”
tyk: time=“Aug 24 18:00:12” level=debug msg=“—> Initialising checker”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Config:TriggerLimit: 2”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Config:Timeout: ~10”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Config:WorkerPool: 50”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Init complete”
tyk: time=“Aug 24 18:00:12” level=debug msg=“—> Starting checker”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Starting…”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Check loop started…”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[HOST CHECKER] Host reporter started…”
tyk: time=“Aug 24 18:00:12” level=debug msg=“—> Checker started.”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Notifier will not work in hybrid mode”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:12” level=info msg=“Setting up analytics normaliser”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Redis log hook active”
tyk: time=“Aug 24 18:00:12” level=info msg=“PIDFile location set to: ./tyk-gateway.pid”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Initialising default org store”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:12” level=info msg=“Initialising Tyk REST API Endpoints”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Loaded API Endpoints”
tyk: time=“Aug 24 18:00:12” level=warning msg=“File descriptor limit 1024 too low for production use. Min 80000 recommended.\n\tThis could have a significant negative impact on performance.\n\tPlease refer to //tyk.io/docs/planning-for-production/ for further guidance.”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] SET Raw key is: redis-test-6b1b1dee-df7e-4b0f-8afd-14c5aa161408”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] Setting key: redis-test-6b1b1dee-df7e-4b0f-8afd-14c5aa161408”
tyk: time=“Aug 24 18:00:12” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] Getting WAS: redis-test-6b1b1dee-df7e-4b0f-8afd-14c5aa161408”
tyk: time=“Aug 24 18:00:12” level=debug msg=“[STORE] Getting: redis-test-6b1b1dee-df7e-4b0f-8afd-14c5aa161408”
tyk: time=“Aug 24 18:00:12” level=info msg=“Redis connection pools are ready after number of retires” currRetry=0
tyk: time=“Aug 24 18:00:12” level=info msg=“Redis connection pools are ready”
tyk: time=“Aug 24 18:00:12” level=info msg=“–> Standard listener (http)” port=“:8080”
tyk: time=“Aug 24 18:00:12” level=info msg=“Setting up Server”
tyk: time=“Aug 24 18:00:12” level=info msg=“Waiting for zeroconf signal…”
tyk: time=“Aug 24 18:00:12” level=warning msg=“Insecure configuration detected (allowing)!”
tyk: time=“Aug 24 18:00:12” level=info msg=“Hostname set with dashboard zeroconf signal”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:13” level=info msg=“Registering node.”
tyk: time=“Aug 24 18:00:13” level=info msg=“Node registered” id=cead9e69-1d86-47aa-68c1-24e6cdb69146
tyk: time=“Aug 24 18:00:13” level=debug msg=“Registration Finished: Nonce Set: Y2VhZDllNjktMWQ4Ni00N2FhLTY4YzEtMjRlNmNkYjY5MTQ2YzcxYjdlMWYyNTUzNGJjYTZhZmQwZDQ1MmNjYzE1MzA=”
tyk: time=“Aug 24 18:00:13” level=info msg=“Gateway started (v2.7.0)”
tyk: time=“Aug 24 18:00:13” level=info msg=“Initialising distributed rate limiter”
tyk: time=“Aug 24 18:00:13” level=debug msg=“DRL: Setting node ID: cead9e69-1d86-47aa-68c1-24e6cdb69146|localhost.localdomain”
tyk: time=“Aug 24 18:00:13” level=info msg=“–> Listening on address: (open interface)”
tyk: time=“Aug 24 18:00:13” level=info msg=“–> Listening on port: 8080”
tyk: time=“Aug 24 18:00:13” level=info msg=“–> PID: 9611”
tyk: time=“Aug 24 18:00:13” level=info msg=“Starting gateway rate limiter notifications…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:13” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Default JSVM timeout used: 5s”
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading policies”
tyk: time=“Aug 24 18:00:13” level=info msg=“Using Policies from Dashboard Service”
tyk: time=“Aug 24 18:00:13” level=info msg=“Mutex lock acquired… calling”
tyk: time=“Aug 24 18:00:13” level=info msg=“Calling dashboard service for policy list”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading Policies Finished: Nonce Set: Y2VhZDllNjktMWQ4Ni00N2FhLTY4YzEtMjRlNmNkYjY5MTQ2ZjMxMDRlZjZlY2E4NGFlMDdjMWJlMmNiZTcyMjBkY2E=”
tyk: time=“Aug 24 18:00:13” level=info msg=“Processing policy list”
tyk: time=“Aug 24 18:00:13” level=info msg=“Policies found (2 total):”
tyk: time=“Aug 24 18:00:13” level=info msg=" - 5b6d4008e138230eadef023b"
tyk: time=“Aug 24 18:00:13” level=info msg=" - 5b6e58fbe138230ada8805c9"
tyk: time=“Aug 24 18:00:13” level=debug msg=“Calling: http://10.4.2.98:3000/system/apis
tyk: time=“Aug 24 18:00:13” level=debug msg=“Using: NodeID: cead9e69-1d86-47aa-68c1-24e6cdb69146”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Default JSVM timeout used: 5s”
tyk: time=“Aug 24 18:00:13” level=debug msg=“INITIALISING EVENT HANDLERS”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=error msg=“Could not parse expiry date for API” Expires=“01/02/3000” error=“parsing time "01/02/3000" as "2006-01-02 15:04": cannot parse "2/3000" as "2006"”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Default JSVM timeout used: 5s”
tyk: time=“Aug 24 18:00:13” level=debug msg=“INITIALISING EVENT HANDLERS”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Default JSVM timeout used: 5s”
tyk: time=“Aug 24 18:00:13” level=debug msg=“INITIALISING EVENT HANDLERS”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Default JSVM timeout used: 5s”
tyk: time=“Aug 24 18:00:13” level=debug msg=“INITIALISING EVENT HANDLERS”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Default JSVM timeout used: 5s”
tyk: time=“Aug 24 18:00:13” level=debug msg=“INITIALISING EVENT HANDLERS”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checking for transform paths…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading APIS Finished: Nonce Set: Y2VhZDllNjktMWQ4Ni00N2FhLTY4YzEtMjRlNmNkYjY5MTQ2YjQwYzc2ZGIzNDE2NDI0MzQ1NzRmOTk3OWRjNjc5NTE=”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Downloading API Configurations from Dashboard Service”
tyk: time=“Aug 24 18:00:13” level=info msg=“Detected 5 APIs”
tyk: time=“Aug 24 18:00:13” level=info msg=“Preparing new router”
tyk: time=“Aug 24 18:00:13” level=info msg=“Initialising Tyk REST API Endpoints”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loaded API Endpoints”
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading API configurations.”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=info msg=“Tracking hostname” api_name=TestTykAPI2 domain=“127.0.0.1:8080”
tyk: time=“Aug 24 18:00:13” level=info msg=“Tracking hostname” api_name=TestApi3 domain=“(no host)”
tyk: time=“Aug 24 18:00:13” level=info msg=“Tracking hostname” api_name=TestApi1 domain=10.4.2.98
tyk: time=“Aug 24 18:00:13” level=info msg=“Tracking hostname” api_name=TestApi4 domain=“(no host)”
tyk: time=“Aug 24 18:00:13” level=info msg=“Tracking hostname” api_name=TestApi5 domain=“(no host)”
tyk: time=“Aug 24 18:00:13” level=info msg=“Sub-router created for domain” domain=“127.0.0.1:8080”
tyk: time=“Aug 24 18:00:13” level=info msg=“Sub-router created for domain” domain=10.4.2.98
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading API” api_name=TestApi5
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading Middleware” api_name=TestApi5
tyk: time=“Aug 24 18:00:13” level=debug msg=“Connecting to redis cluster”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Creating new Redis connection pool”
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading API” api_name=TestTykAPI2
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading API” api_name=TestApi3
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading API” api_name=TestApi1
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading API” api_name=TestApi4
tyk: time=“Aug 24 18:00:13” level=debug msg=“CORS ENABLED”
tyk: time=“Aug 24 18:00:13” level=info msg=“Checking security policy: Token” api_name=TestApi5
tyk: time=“Aug 24 18:00:13” level=debug msg=“Custom middleware completed processing” api_name=TestApi5
tyk: time=“Aug 24 18:00:13” level=debug msg=“Chain completed”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Rate limit endpoint is: /testapi5/tyk/rate-limits/” api_name=TestApi5
tyk: time=“Aug 24 18:00:13” level=debug msg=“Setting Listen Path: /testapi5/” api_name=TestApi5
tyk: time=“Aug 24 18:00:13” level=info msg=“Loaded: TestApi5” api_id=1157755ac903493f53b8d2fcb5ca11a9 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading Middleware” api_name=TestTykAPI2
tyk: time=“Aug 24 18:00:13” level=debug msg=“Batch requests enabled for API”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=info msg=“Checking security policy: Token” api_name=TestTykAPI2
tyk: time=“Aug 24 18:00:13” level=debug msg=“Custom middleware completed processing” api_name=TestTykAPI2
tyk: time=“Aug 24 18:00:13” level=debug msg=“Chain completed”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Rate limit endpoint is: /Test-Tyk-API2/tyk/rate-limits/” api_name=TestTykAPI2
tyk: time=“Aug 24 18:00:13” level=debug msg=“Setting Listen Path: /Test-Tyk-API2/” api_name=TestTykAPI2
tyk: time=“Aug 24 18:00:13” level=info msg=“Loaded: TestTykAPI2” api_id=ae4a395744ee490449adceeb8d77a681 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
tyk: time=“Aug 24 18:00:13” level=debug msg=“Sending notification{gateway-log {"api_id":"1157755ac903493f53b8d2fcb5ca11a9","level":"info","msg":"Loaded: TestApi5","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:00:13+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:00:13.45573459 +0800 CST m=+1.327120403}”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading Middleware” api_name=TestApi3
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=info msg=“Checking security policy: Token” api_name=TestApi3
tyk: time=“Aug 24 18:00:13” level=debug msg=“Custom middleware completed processing” api_name=TestApi3
tyk: time=“Aug 24 18:00:13” level=debug msg=“Chain completed”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Rate limit endpoint is: /testapi3/testtyk/rate-limits/” api_name=TestApi3
tyk: time=“Aug 24 18:00:13” level=debug msg=“Setting Listen Path: /testapi3/test” api_name=TestApi3
tyk: time=“Aug 24 18:00:13” level=info msg=“Loaded: TestApi3” api_id=3554fe37244c47c24e0a780e928cfda2 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
tyk: time=“Aug 24 18:00:13” level=debug msg=“Sending notification{gateway-log {"api_id":"ae4a395744ee490449adceeb8d77a681","level":"info","msg":"Loaded: TestTykAPI2","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:00:13+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:00:13.456129777 +0800 CST m=+1.327515590}”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading Middleware” api_name=TestApi1
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=info msg=“Checking security policy: Token” api_name=TestApi1
tyk: time=“Aug 24 18:00:13” level=debug msg=“Custom middleware completed processing” api_name=TestApi1
tyk: time=“Aug 24 18:00:13” level=debug msg=“Chain completed”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Rate limit endpoint is: /testapi1/tyk/rate-limits/” api_name=TestApi1
tyk: time=“Aug 24 18:00:13” level=debug msg=“Setting Listen Path: /testapi1/” api_name=TestApi1
tyk: time=“Aug 24 18:00:13” level=info msg=“Loaded: TestApi1” api_id=4864fb9e35bf43f679167da6341fc277 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
tyk: time=“Aug 24 18:00:13” level=debug msg=“Sending notification{gateway-log {"api_id":"3554fe37244c47c24e0a780e928cfda2","level":"info","msg":"Loaded: TestApi3","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:00:13+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:00:13.456771181 +0800 CST m=+1.328156989}”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Loading Middleware” api_name=TestApi4
tyk: time=“Aug 24 18:00:13” level=debug msg=“Storage Engine already initialised…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“CORS ENABLED”
tyk: time=“Aug 24 18:00:13” level=info msg=“Checking security policy: Token” api_name=TestApi4
tyk: time=“Aug 24 18:00:13” level=debug msg=“Custom middleware completed processing” api_name=TestApi4
tyk: time=“Aug 24 18:00:13” level=debug msg=“Chain completed”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Rate limit endpoint is: /testapi4/tyk/rate-limits/” api_name=TestApi4
tyk: time=“Aug 24 18:00:13” level=debug msg=“Setting Listen Path: /testapi4/” api_name=TestApi4
tyk: time=“Aug 24 18:00:13” level=info msg=“Loaded: TestApi4” api_id=c9338e8eceec4c057e137fae18e17f9a org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
tyk: time=“Aug 24 18:00:13” level=info msg=“Processed and listening on: /Test-Tyk-API2/{rest:.}"
tyk: time=“Aug 24 18:00:13” level=info msg="Processed and listening on: /testapi3/test{rest:.
}”
tyk: time=“Aug 24 18:00:13” level=info msg=“Processed and listening on: /testapi1/{rest:.}"
tyk: time=“Aug 24 18:00:13” level=info msg="Processed and listening on: /testapi4/{rest:.
}”
tyk: time=“Aug 24 18:00:13” level=info msg=“Processed and listening on: /testapi5/{rest:.*}”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checker host list”
tyk: time=“Aug 24 18:00:13” level=info msg=“Loading uptime tests…”
tyk: time=“Aug 24 18:00:13” level=debug msg=“— Setting tracking list up”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Reset initiated”
tyk: time=“Aug 24 18:00:13” level=debug msg=“[HOST CHECKER] Checker reset queued!”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Checker host Done”
tyk: time=“Aug 24 18:00:13” level=info msg=“Initialised API Definitions”
tyk: time=“Aug 24 18:00:13” level=info msg=“API reload complete”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Sending notification{gateway-log {"api_id":"4864fb9e35bf43f679167da6341fc277","level":"info","msg":"Loaded: TestApi1","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:00:13+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:00:13.457255757 +0800 CST m=+1.328641566}”
tyk: time=“Aug 24 18:00:13” level=debug msg=“Sending notification{gateway-log {"api_id":"c9338e8eceec4c057e137fae18e17f9a","level":"info","msg":"Loaded: TestApi4","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:00:13+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:00:13.458069371 +0800 CST m=+1.329455188}”
tyk: time=“Aug 24 18:00:14” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:15” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:15” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:15” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:15” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:16” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk-analytics: time=“Aug 24 18:00:16” level=info msg=“Sending config request for node: cead9e69-1d86-47aa-68c1-24e6cdb69146-localhost.localdomain”
tyk: time=“Aug 24 18:00:16” level=debug msg=“Sending notification{NoticeGatewayConfigResponse {"FromHostname":"localhost.localdomain","FromNodeID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","Configuration":{"allow_insecure_configs":true,"allow_master_keys":false,"allow_remote_config":false,"analytics_config":{"enable_detailed_recording":true,"enable_geo_ip":false,"geo_ip_db_path":"","ignored_ips":[],"normalise_urls":{"custom_patterns":[],"enabled":true,"normalise_numbers":true,"normalise_uuids":true},"type":""},"app_path":"/opt/tyk-gateway/apps","bundle_base_url":"","close_connections":false,"close_idle_connections":false,"coprocess_options":{"coprocess_grpc_server":"","enable_coprocess":false},"db_app_conf_options":{"connection_string":"","node_is_segmented":false,"tags":[]},"disable_dashboard_zeroconf":false,"enable_analytics":true,"enable_bundle_downloader":true,"enable_custom_domains":true,"enable_jsvm":true,"enable_non_transactional_rate_limiter":true,"enable_sentinel_rate_limiter":false,"experimental_process_org_off_thread":false,"force_global_session_lifetime":false,"global_session_lifetime":100,"hash_keys":true,"health_check":{"enable_health_checks":false,"health_check_value_timeouts":60},"hostname":"","http_server_options":{"enable_websockets":true},"listen_port":8080,"local_session_cache":{"disable_cached_session_state":false},"log_level":"debug","max_idle_connections_per_host":500,"middleware_path":"/opt/tyk-gateway/middleware","oauth_redirect_uri_separator":";","optimisations_use_async_session_write":true,"pid_file_location":"./tyk-gateway.pid","policies":{"allow_explicit_policy_id":true,"policy_connection_string":"","policy_record_name":"tyk_policies","policy_source":"service"},"public_key_path":"","suppress_redis_signal_reload":false,"template_path":"/opt/tyk-gateway/templates","uptime_tests":{"config":{"checker_pool_size":50,"enable_uptime_analytics":true,"failure_trigger_sample_size":2,"time_wait":10},"disable":false},"use_db_app_configs":true,"use_redis_log":true},"TimeStamp":1535104816} }”
tyk: time=“Aug 24 18:00:16” level=debug msg=“Configuration request responded.”
tyk-analytics: time=“Aug 24 18:00:16” level=info msg=“Got configuration for nodeID: cead9e69-1d86-47aa-68c1-24e6cdb69146|localhost.localdomain”
tyk: time=“Aug 24 18:00:17” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:17” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:17” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:17” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:18” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:19” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:19” level=debug msg=“[HOST CHECKER] Host list reset”
tyk: time=“Aug 24 18:00:19” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:19” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:19” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:20” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:21” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:21” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:21” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:21” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:22” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:22” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:22” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:22” level=debug msg=“Primary instance set, I am master”
tyk: time=“Aug 24 18:00:22” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:22” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:23” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:23” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:23” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:23” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:24” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:25” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:25” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:25” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:25” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:26” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:27” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:27” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:27” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:27” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:28” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:29” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:29” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:29” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:29” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:30” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:31” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:31” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:31” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:31” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:32” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:32” level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:32” level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:32” level=debug msg=“Primary instance set, I am master”
tyk: time=“Aug 24 18:00:32” level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:32” level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
tyk: time=“Aug 24 18:00:33” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:33” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:33” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:33” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:34” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:35” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk: time=“Aug 24 18:00:35” level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
tyk: time=“Aug 24 18:00:35” level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
tyk: time=“Aug 24 18:00:35” level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
tyk: time=“Aug 24 18:00:36” level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”

hi, matiash, I have share the log, Can you help to check the log?

Is this the log after sending a test request or just gateway initialization?

matiasb, please review the follow log:
systemd: Started Session 51 of user root.
systemd: Starting Session 51 of user root.
systemd: Started Tyk API Gateway.
systemd: Starting Tyk API Gateway…
18:30:05" level=debug msg=“Setting up analytics DB connection”
18:30:05" level=debug msg=“Connecting to redis cluster”
18:30:05" level=debug msg=“Creating new Redis connection pool”
18:30:05" level=info msg=“Connection dropped, reconnecting…”
18:30:05" level=debug msg=“Analytics pool workers number” ps=50
18:30:05" level=debug msg=“Analytics total buffer (channel) size” recordsBufferSize=1000
18:30:05" level=debug msg=“Analytics pool worker buffer size” workerBufferSize=20
18:30:05" level=debug msg=“Notifier will not work in hybrid mode”
18:30:05" level=debug msg=“Storage Engine already initialised…”
18:30:05" level=info msg=“Setting up analytics normaliser”
18:30:05" level=debug msg=“Redis log hook active”
18:30:05" level=info msg=“PIDFile location set to: ./tyk-gateway.pid”
18:30:05" level=debug msg=“Initialising default org store”
18:30:05" level=debug msg=“Storage Engine already initialised…”
18:30:05" level=debug msg=“Storage Engine already initialised…”
18:30:05" level=info msg=“Initialising Tyk REST API Endpoints”
18:30:05" level=debug msg=“Loaded API Endpoints”
18:30:05" level=warning msg=“File descriptor limit 1024 too low for production use. Min 80000 recommended.\n\tThis could have a significant negative impact on performance.\n\tPlease refer to //tyk.io/docs/planning-for-production/ for further guidance.”
18:30:05" level=debug msg=“Storage Engine already initialised…”
18:30:05" level=debug msg=“[STORE] SET Raw key is: redis-test-79b83026-37f2-4d31-90c9-58d00efcb1a2”
18:30:05" level=debug msg=“[STORE] Setting key: redis-test-79b83026-37f2-4d31-90c9-58d00efcb1a2”
18:30:05" level=debug msg=“Storage Engine already initialised…”
18:30:05" level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
18:30:05" level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
18:30:05" level=debug msg=“Storage Engine already initialised…”
18:30:05" level=debug msg=“Error trying to get value:redigo: nil returned”
18:30:05" level=debug msg=“No Primary instance found, assuming control”
18:30:05" level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
18:30:05" level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
18:30:05" level=debug msg=“[STORE] Getting WAS: redis-test-79b83026-37f2-4d31-90c9-58d00efcb1a2”
18:30:05" level=debug msg=“[STORE] Getting: redis-test-79b83026-37f2-4d31-90c9-58d00efcb1a2”
18:30:05" level=info msg=“Starting Poller”
18:30:05" level=debug msg=“—> Initialising checker”
18:30:05" level=debug msg=“[HOST CHECKER] Config:TriggerLimit: 2”
18:30:05" level=debug msg=“[HOST CHECKER] Config:Timeout: ~10”
18:30:05" level=debug msg=“[HOST CHECKER] Config:WorkerPool: 50”
18:30:05" level=debug msg=“[HOST CHECKER] Init complete”
18:30:05" level=debug msg=“—> Starting checker”
18:30:05" level=debug msg=“[HOST CHECKER] Starting…”
18:30:05" level=debug msg=“[HOST CHECKER] Check loop started…”
18:30:05" level=debug msg=“[HOST CHECKER] Host reporter started…”
18:30:05" level=debug msg=“—> Checker started.”
18:30:05" level=info msg=“Redis connection pools are ready after number of retires” currRetry=0
18:30:05" level=info msg=“Redis connection pools are ready”
18:30:05" level=info msg=“–> Standard listener (http)” port=“:8080”
18:30:05" level=info msg=“Setting up Server”
18:30:05" level=info msg=“Waiting for zeroconf signal…”
18:30:05" level=warning msg=“Insecure configuration detected (allowing)!”
18:30:05" level=info msg=“Hostname set with dashboard zeroconf signal”
18:30:06" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:06" level=info msg=“Registering node.”
18:30:06" level=info msg=“Node registered” id=cead9e69-1d86-47aa-68c1-24e6cdb69146
18:30:06" level=debug msg=“Registration Finished: Nonce Set: Y2VhZDllNjktMWQ4Ni00N2FhLTY4YzEtMjRlNmNkYjY5MTQ2OGFkNjUyYzExODZhNDJiMjYyMGQ3MmQ1YjEzMjU0ZmQ=”
18:30:06" level=info msg=“Gateway started (v2.7.0)”
18:30:06" level=info msg=“Initialising distributed rate limiter”
18:30:06" level=debug msg=“DRL: Setting node ID: cead9e69-1d86-47aa-68c1-24e6cdb69146|localhost.localdomain”
18:30:06" level=info msg=“–> Listening on address: (open interface)”
18:30:06" level=info msg=“–> Listening on port: 8080”
18:30:06" level=info msg=“–> PID: 10045”
18:30:06" level=info msg=“Starting gateway rate limiter notifications…”
18:30:06" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:06" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:06" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:06" level=debug msg=“Default JSVM timeout used: 5s”
18:30:06" level=info msg=“Loading policies”
18:30:06" level=info msg=“Using Policies from Dashboard Service”
18:30:06" level=info msg=“Mutex lock acquired… calling”
18:30:06" level=info msg=“Calling dashboard service for policy list”
18:30:06" level=debug msg=“Loading Policies Finished: Nonce Set: Y2VhZDllNjktMWQ4Ni00N2FhLTY4YzEtMjRlNmNkYjY5MTQ2NWZiYjU2MTA3ZWQ2NGNlYTQwN2YyYzA3ZmQ4NjIwM2Q=”
18:30:06" level=info msg=“Processing policy list”
18:30:06" level=info msg=“Policies found (2 total):”
18:30:06" level=info msg=" - 5b6d4008e138230eadef023b"
18:30:06" level=info msg=" - 5b6e58fbe138230ada8805c9"
18:30:06" level=debug msg=“Calling: http://10.4.2.98:3000/system/apis
18:30:06" level=debug msg=“Using: NodeID: cead9e69-1d86-47aa-68c1-24e6cdb69146”
18:30:06" level=debug msg=“Default JSVM timeout used: 5s”
18:30:06" level=debug msg=“INITIALISING EVENT HANDLERS”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=error msg=“Could not parse expiry date for API” Expires=“01/02/3000” error=“parsing time "01/02/3000" as "2006-01-02 15:04": cannot parse "2/3000" as "2006"”
18:30:06" level=debug msg=“Default JSVM timeout used: 5s”
18:30:06" level=debug msg=“INITIALISING EVENT HANDLERS”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Default JSVM timeout used: 5s”
18:30:06" level=debug msg=“INITIALISING EVENT HANDLERS”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Default JSVM timeout used: 5s”
18:30:06" level=debug msg=“INITIALISING EVENT HANDLERS”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Default JSVM timeout used: 5s”
18:30:06" level=debug msg=“INITIALISING EVENT HANDLERS”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Checking for transform paths…”
18:30:06" level=debug msg=“Loading APIS Finished: Nonce Set: Y2VhZDllNjktMWQ4Ni00N2FhLTY4YzEtMjRlNmNkYjY5MTQ2ZmQxZjE2YTY2ZTk3NDFiNTcxMWRkYTBjN2VjZjljYjA=”
18:30:06" level=debug msg=“Downloading API Configurations from Dashboard Service”
18:30:06" level=info msg=“Detected 5 APIs”
18:30:06" level=info msg=“Preparing new router”
18:30:06" level=info msg=“Initialising Tyk REST API Endpoints”
18:30:06" level=debug msg=“Loaded API Endpoints”
18:30:06" level=info msg=“Loading API configurations.”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=info msg=“Tracking hostname” api_name=TestTykAPI2 domain=“127.0.0.1:8080”
18:30:06" level=info msg=“Tracking hostname” api_name=TestApi3 domain=“(no host)”
18:30:06" level=info msg=“Tracking hostname” api_name=TestApi1 domain=10.4.2.98
18:30:06" level=info msg=“Tracking hostname” api_name=TestApi4 domain=“(no host)”
18:30:06" level=info msg=“Tracking hostname” api_name=TestApi5 domain=“(no host)”
18:30:06" level=info msg=“Sub-router created for domain” domain=“127.0.0.1:8080”
18:30:06" level=info msg=“Sub-router created for domain” domain=10.4.2.98
18:30:06" level=info msg=“Loading API” api_name=TestApi5
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Loading Middleware” api_name=TestApi5
18:30:06" level=debug msg=“Connecting to redis cluster”
18:30:06" level=debug msg=“Creating new Redis connection pool”
18:30:06" level=info msg=“Loading API” api_name=TestTykAPI2
18:30:06" level=info msg=“Loading API” api_name=TestApi3
18:30:06" level=info msg=“Loading API” api_name=TestApi1
18:30:06" level=info msg=“Loading API” api_name=TestApi4
18:30:06" level=debug msg=“CORS ENABLED”
18:30:06" level=info msg=“Checking security policy: Token” api_name=TestApi5
18:30:06" level=debug msg=“Custom middleware completed processing” api_name=TestApi5
18:30:06" level=debug msg=“Chain completed”
18:30:06" level=debug msg=“Rate limit endpoint is: /testapi5/tyk/rate-limits/” api_name=TestApi5
18:30:06" level=debug msg=“Setting Listen Path: /testapi5/” api_name=TestApi5
18:30:06" level=info msg=“Loaded: TestApi5” api_id=1157755ac903493f53b8d2fcb5ca11a9 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Loading Middleware” api_name=TestTykAPI2
18:30:06" level=debug msg=“Batch requests enabled for API”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=info msg=“Checking security policy: Token” api_name=TestTykAPI2
18:30:06" level=debug msg=“Custom middleware completed processing” api_name=TestTykAPI2
18:30:06" level=debug msg=“Chain completed”
18:30:06" level=debug msg=“Rate limit endpoint is: /Test-Tyk-API2/tyk/rate-limits/” api_name=TestTykAPI2
18:30:06" level=debug msg=“Setting Listen Path: /Test-Tyk-API2/” api_name=TestTykAPI2
18:30:06" level=info msg=“Loaded: TestTykAPI2” api_id=ae4a395744ee490449adceeb8d77a681 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
18:30:06" level=debug msg=“Sending notification{gateway-log {"api_id":"1157755ac903493f53b8d2fcb5ca11a9","level":"info","msg":"Loaded: TestApi5","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:30:06+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:30:06.675376923 +0800 CST m=+1.297539297}”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Loading Middleware” api_name=TestApi3
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=info msg=“Checking security policy: Token” api_name=TestApi3
18:30:06" level=debug msg=“Custom middleware completed processing” api_name=TestApi3
18:30:06" level=debug msg=“Chain completed”
18:30:06" level=debug msg=“Rate limit endpoint is: /testapi3/testtyk/rate-limits/” api_name=TestApi3
18:30:06" level=debug msg=“Setting Listen Path: /testapi3/test” api_name=TestApi3
18:30:06" level=info msg=“Loaded: TestApi3” api_id=3554fe37244c47c24e0a780e928cfda2 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
18:30:06" level=debug msg=“Sending notification{gateway-log {"api_id":"ae4a395744ee490449adceeb8d77a681","level":"info","msg":"Loaded: TestTykAPI2","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:30:06+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:30:06.675923049 +0800 CST m=+1.298085421}”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Loading Middleware” api_name=TestApi1
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=info msg=“Checking security policy: Token” api_name=TestApi1
18:30:06" level=debug msg=“Custom middleware completed processing” api_name=TestApi1
18:30:06" level=debug msg=“Chain completed”
18:30:06" level=debug msg=“Rate limit endpoint is: /testapi1/tyk/rate-limits/” api_name=TestApi1
18:30:06" level=debug msg=“Setting Listen Path: /testapi1/” api_name=TestApi1
18:30:06" level=info msg=“Loaded: TestApi1” api_id=4864fb9e35bf43f679167da6341fc277 org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
18:30:06" level=debug msg=“Sending notification{gateway-log {"api_id":"3554fe37244c47c24e0a780e928cfda2","level":"info","msg":"Loaded: TestApi3","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:30:06+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:30:06.676592841 +0800 CST m=+1.298755223}”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“Loading Middleware” api_name=TestApi4
18:30:06" level=debug msg=“Storage Engine already initialised…”
18:30:06" level=debug msg=“CORS ENABLED”
18:30:06" level=info msg=“Checking security policy: Token” api_name=TestApi4
18:30:06" level=debug msg=“Custom middleware completed processing” api_name=TestApi4
18:30:06" level=debug msg=“Chain completed”
18:30:06" level=debug msg=“Rate limit endpoint is: /testapi4/tyk/rate-limits/” api_name=TestApi4
18:30:06" level=debug msg=“Setting Listen Path: /testapi4/” api_name=TestApi4
18:30:06" level=info msg=“Loaded: TestApi4” api_id=c9338e8eceec4c057e137fae18e17f9a org_id=5b6a9a6ae138230df675f3c0 server_name=-- user_id=-- user_ip=–
18:30:06" level=info msg=“Processed and listening on: /Test-Tyk-API2/{rest:.}"
18:30:06" level=info msg="Processed and listening on: /testapi3/test{rest:.
}”
18:30:06" level=info msg=“Processed and listening on: /testapi1/{rest:.}"
18:30:06" level=info msg="Processed and listening on: /testapi4/{rest:.
}”
18:30:06" level=info msg=“Processed and listening on: /testapi5/{rest:.*}”
18:30:06" level=debug msg=“Checker host list”
18:30:06" level=info msg=“Loading uptime tests…”
18:30:06" level=debug msg=“— Setting tracking list up”
18:30:06" level=debug msg=“Reset initiated”
18:30:06" level=debug msg=“[HOST CHECKER] Checker reset queued!”
18:30:06" level=debug msg=“Checker host Done”
18:30:06" level=info msg=“Initialised API Definitions”
18:30:06" level=info msg=“API reload complete”
18:30:06" level=debug msg=“Sending notification{gateway-log {"api_id":"4864fb9e35bf43f679167da6341fc277","level":"info","msg":"Loaded: TestApi1","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:30:06+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:30:06.677333511 +0800 CST m=+1.299495881}”
18:30:06" level=debug msg=“Sending notification{gateway-log {"api_id":"c9338e8eceec4c057e137fae18e17f9a","level":"info","msg":"Loaded: TestApi4","org_id":"5b6a9a6ae138230df675f3c0","prefix":"gateway","server_name":"–","time":"2018-08-24T18:30:06+08:00","user_id":"–","user_ip":"–"}\n 5b6a9a6ae138230df675f3c0 2018-08-24 18:30:06.677920984 +0800 CST m=+1.300083363}”
18:30:07" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:08" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:08" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:08" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:08" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:09" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk-analytics: time=“Aug 24 18:30:09” level=info msg=“Sending config request for node: cead9e69-1d86-47aa-68c1-24e6cdb69146-localhost.localdomain”
18:30:09" level=debug msg=“Sending notification{NoticeGatewayConfigResponse {"FromHostname":"localhost.localdomain","FromNodeID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","Configuration":{"allow_insecure_configs":true,"allow_master_keys":false,"allow_remote_config":false,"analytics_config":{"enable_detailed_recording":true,"enable_geo_ip":false,"geo_ip_db_path":"","ignored_ips":[],"normalise_urls":{"custom_patterns":[],"enabled":true,"normalise_numbers":true,"normalise_uuids":true},"type":""},"app_path":"/opt/tyk-gateway/apps","bundle_base_url":"","close_connections":false,"close_idle_connections":false,"coprocess_options":{"coprocess_grpc_server":"","enable_coprocess":false},"db_app_conf_options":{"connection_string":"","node_is_segmented":false,"tags":[]},"disable_dashboard_zeroconf":false,"enable_analytics":true,"enable_bundle_downloader":true,"enable_custom_domains":true,"enable_jsvm":true,"enable_non_transactional_rate_limiter":true,"enable_sentinel_rate_limiter":false,"experimental_process_org_off_thread":false,"force_global_session_lifetime":false,"global_session_lifetime":100,"hash_keys":true,"health_check":{"enable_health_checks":false,"health_check_value_timeouts":60},"hostname":"","http_server_options":{"enable_websockets":true},"listen_port":8080,"local_session_cache":{"disable_cached_session_state":false},"log_level":"debug","max_idle_connections_per_host":500,"middleware_path":"/opt/tyk-gateway/middleware","oauth_redirect_uri_separator":";","optimisations_use_async_session_write":true,"pid_file_location":"./tyk-gateway.pid","policies":{"allow_explicit_policy_id":true,"policy_connection_string":"","policy_record_name":"tyk_policies","policy_source":"service"},"public_key_path":"","suppress_redis_signal_reload":false,"template_path":"/opt/tyk-gateway/templates","uptime_tests":{"config":{"checker_pool_size":50,"enable_uptime_analytics":true,"failure_trigger_sample_size":2,"time_wait":10},"disable":false},"use_db_app_configs":true,"use_redis_log":true},"TimeStamp":1535106609} }”
18:30:09" level=debug msg=“Configuration request responded.”
tyk-analytics: time=“Aug 24 18:30:09” level=info msg=“Got configuration for nodeID: cead9e69-1d86-47aa-68c1-24e6cdb69146|localhost.localdomain”
18:30:10" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:10" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:10" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:10" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:11" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:12" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:12" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:12" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:12" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:13" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:14" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:14" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:14" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:14" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:15" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:15" level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
18:30:15" level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
18:30:15" level=debug msg=“[HOST CHECKER] Host list reset”
18:30:15" level=debug msg=“Primary instance set, I am master”
18:30:15" level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
18:30:15" level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
18:30:16" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:16" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:16" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:16" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:17" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:18" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:18" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:18" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:18" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:18" level=debug msg=“Querying local cache”
18:30:18" level=debug msg=“Querying keystore”
18:30:18" level=debug msg=“[STORE] Getting WAS: 5b6a9a6ae138230df675f3c081f8f6ee851c4c208b249f9917434113”
18:30:18" level=debug msg=“[STORE] Getting: apikey-02992865”
18:30:18" level=debug msg=“–> Got key”
18:30:18" level=debug msg=“No allowed URLS”
18:30:18" level=debug msg=“Started proxy”
18:30:18" level=debug msg=“Stripping: /testapi5/”
18:30:18" level=debug msg=“Upstream Path is: "
18:30:18” level=debug msg=“UPSTREAM REQUEST URL: "
18:30:18” level=debug msg=“Outbound Request: https://httpbin.org/get
18:30:19" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:19" level=debug msg=“Upstream request took (ms): 1068.8272379999999”
18:30:19" level=debug msg=“Done proxy”
18:30:20" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:20" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:20" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:20" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:21" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:22" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:22" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:22" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:22" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:23" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:24" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:24" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:24" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:24" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:25" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:25" level=debug msg=“[STORE] Getting WAS: PollerActiveInstanceID”
18:30:25" level=debug msg=“[STORE] Getting: host-checker:PollerActiveInstanceID”
18:30:25" level=debug msg=“Primary instance set, I am master”
18:30:25" level=debug msg=“[STORE] SET Raw key is: PollerActiveInstanceID”
18:30:25" level=debug msg=“[STORE] Setting key: host-checker:PollerActiveInstanceID”
18:30:26" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
tyk-pump: time=“Aug 24 18:30:26” level=info msg=“Writing 1 records”
tyk-pump: time=“Aug 24 18:30:26” level=info msg=“Purging 1 records”
18:30:26" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:26" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:26" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:27" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:28" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:28" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:28" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:28" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:29" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:30" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:30" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:30" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:30" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:31" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:32" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”
18:30:32" level=debug msg=“Sending notification{NoticeGatewayDRLNotification {"HostName":"localhost.localdomain","ID":"cead9e69-1d86-47aa-68c1-24e6cdb69146","LoadPerSec":1,"Percentage":0,"TagHash":""} }”
18:30:32" level=debug msg=“Received DRL data: {localhost.localdomain cead9e69-1d86-47aa-68c1-24e6cdb69146 1 0 }”
18:30:32" level=debug msg=“[Active Nodes]: 1 [Token Bucket Value]: 100 [Current Load p/s]: 1 [Current Load]: 0.000000”
18:30:33" level=debug msg=“Getting exp for key: analytics-tyk-system-analytics”

the last log data is after sending a test request.

Can you try setting "use_keyless": "true" and sending a Curl request to /testapi4/ with no headers? How did you setup the authentication?

Please share the full Curl output using curl -v.

Also based on the response headers you posted at the beginning of the thread, it seems that the HTTP 404 is coming from your upstream, not from Tyk, can you check that? This means the request is being proxied correctly.

HTTP/1.1 404 NOT FOUND
Content-Length: 233
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/html
Date: Fri, 24 Aug 2018 03:04:16 GMT
Server: gunicorn/19.9.0
Via: 1.1 vegur
X-Ratelimit-Limit: -1
X-Ratelimit-Remaining: -1
X-Ratelimit-Reset: 1535076000

matiasb, my question is how to configurtion CORS ?, let external computer can call my api.
can you give me refer doc url for Tyk?
I have set the CORS parameter as follow:
“CORS”: {
“enable”: true,
“allowed_origins”: [
“*”
],
“allowed_methods”: [
“GET”,
“POST”,
“OPTIONS”
],
“allowed_headers”: [
“tyk-api-key”
],
“exposed_headers”: [],
“allow_credentials”: true,
“max_age”: 24,
“options_passthrough”: true,
“debug”: false
}

Check these the CORS documentation here and here.

this error have solved after select “Strip the listen path” parameter.

thank you, I will study these documentation.

1 Like

hello matiasb. Can you help me to reply a question? the question is that:
how to get the sending of the automatic emails to work? Didn’t find much documentation about it on tyk site.

I have setup the Developer portal, after the developer user request a API key in API Catalogue. In portal Management of admin user can approve the request key. I hope that after the admin have approve key, Developer user can receive email.
In the Setting of port Management ,have setting API Key approval email ,select Enable custom approval email .
After approve the key, check the log file is that: Email notifications disabled, skipping Send(), Can you tell me how to setup automatic sending Emai to work? (modify tyk_analytics.conf and others)

Thank you for you help.