Open ashish2007csGit opened 3 years ago
kong_1 | 2021/07/06 09:56:36 [error] 22#0: 12948 [kong] init.lua:287 [kong-service-virtualization] .../5.1/kong/plugins/kong-service-virtualization/access.lua:36: Expected object key string but found invalid token at character 2, client: 172.18.0.1, server: kong, request: "GET /test-apis HTTP/1.1", host: "localhost:8000" kong_1 | 2021/07/06 09:56:38 [debug] 22#0: 26222 [lua] init.lua:446: [vitals] starting vitals timer (2) in 1.0050001144409 seconds
curl -X POST http://localhost:8001/plugins/ \ --data "name=kong-service-virtualization" \ --data "config.virtual_tests={"name"=>"TestCase1", "requestHttpMethod"=>"POST", "requestHash"=>"0296217561490155228da9c17fc555cf9db82d159732f3206638c25f04a285c4", "responseHttpStatus"=>"200", "responseContentType"=>"application/json", "response"=>"eyJtZXNzYWdlIjogIkEgQmlnIFN1Y2Nlc3MhIn0="}" {"created_at":1625565195,"id":"51d3f261-8f77-41bd-880f-b2275f5d56ec","tags":null,"enabled":true,"protocols":["grpc","grpcs","http","https"],"name":"kong-service-virtualization","consumer":null,"service":null,"route":null,"config":{"virtual_tests":"{name=>TestCase1, requestHttpMethod=>POST, requestHash=>0296217561490155228da9c17fc555cf9db82d159732f3206638c25f04a285c4, responseHttpStatus=>200, responseContentType=>application/json, response=>eyJtZXNzYWdlIjogIkEgQmlnIFN1Y2Nlc3MhIn0=}"}}%
hello, I have the same issue
kong_1 | 2021/07/06 09:56:36 [error] 22#0: 12948 [kong] init.lua:287 [kong-service-virtualization] .../5.1/kong/plugins/kong-service-virtualization/access.lua:36: Expected object key string but found invalid token at character 2, client: 172.18.0.1, server: kong, request: "GET /test-apis HTTP/1.1", host: "localhost:8000" kong_1 | 2021/07/06 09:56:38 [debug] 22#0: 26222 [lua] init.lua:446: [vitals] starting vitals timer (2) in 1.0050001144409 seconds
curl -X POST http://localhost:8001/plugins/ \ --data "name=kong-service-virtualization" \ --data "config.virtual_tests={"name"=>"TestCase1", "requestHttpMethod"=>"POST", "requestHash"=>"0296217561490155228da9c17fc555cf9db82d159732f3206638c25f04a285c4", "responseHttpStatus"=>"200", "responseContentType"=>"application/json", "response"=>"eyJtZXNzYWdlIjogIkEgQmlnIFN1Y2Nlc3MhIn0="}" {"created_at":1625565195,"id":"51d3f261-8f77-41bd-880f-b2275f5d56ec","tags":null,"enabled":true,"protocols":["grpc","grpcs","http","https"],"name":"kong-service-virtualization","consumer":null,"service":null,"route":null,"config":{"virtual_tests":"{name=>TestCase1, requestHttpMethod=>POST, requestHash=>0296217561490155228da9c17fc555cf9db82d159732f3206638c25f04a285c4, responseHttpStatus=>200, responseContentType=>application/json, response=>eyJtZXNzYWdlIjogIkEgQmlnIFN1Y2Nlc3MhIn0=}"}}%