profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/kikito/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Enrique García Cota kikito @Kong Madrid, Spain http://kiki.to

kikito/bump.lua 670

A collision detection library for Lua

kikito/anim8 463

An animation library for LÖVE

kikito/ansicolors.lua 88

ANSI terminal color manipulation for Lua.

kikito/beholder.lua 81

Minimal observer pattern for Lua, with a couple twists

kikito/7-languages-in-7-weeks 60

My personal repo for 7LI7W exercises

bartbes/Class-Commons 42

An attempt at unifying lua class libraries to provide a common API.

kikito/Algorithm-Implementations 8

Share, discuss and improve algorithm implementations!

kikito/awesome-one-person-games 5

:video_game: A curated list of successul games, made (quite) entirely by a lone gamedev.

startedkikito/middleclass

started time in 2 hours

push eventKong/kong

Wangchong Zhou

commit sha 2dfad2c4f3331af8df71ec9a72585dd082ff9a81

feat(grpc-gateway) initial commit

view details

Wangchong Zhou

commit sha 5948ba38c4fc03fb29dda9af77a54ff4a287f0b4

docs(grpc-gateway) docs and more

view details

Javier Guerra

commit sha b01137d30260ee9f61ebc6dc931cdacabcecf9d6

tests(grpc-gateway) basic tests

view details

Javier Guerra

commit sha 680262c795bca8be545aeceae495c0ad1627629c

chore(grpc-gateway) adapt .proto file to grpcbin service

view details

Javier Guerra

commit sha 3c5eddbcc362f212a066178415ff289c8ddcf3c1

fix(grpc-gateway) grpc calls are POST

view details

Javier Guerra

commit sha f8b01e82204b03f9a5d51a0335ba1709f3084a29

feat(grpc-gateway) get basic functionality working - only http methods define endpoints - force loading of lua_pack - reduce debug output

view details

Javier Guerra

commit sha 78332d36e3a8f2bb2e9979242bb9ff1f5f82df28

fix(grpc-gateway) stricter path matching

view details

Javier Guerra

commit sha 584c6e9bf8a812c288ddbefb240e673160b1e043

fix(grpc-gateway) replace positional args with named tables. scan match candidates via `ipairs()`, not `pairs()`

view details

Wangchong Zhou

commit sha 05efc0b753015065df595d8493cd51bf0d948199

doc(readme) add readme

view details

Wangchong Zhou

commit sha b23f6e86b0a12fdba26548cd1fb3935fcfbf71f2

fix(grpc-gateway) cleanup and add ci

view details

Wangchong Zhou

commit sha 0411a1fdd2c5b1db3fc3aeee0b46c6194fbfb29e

doc(readme) fix typos

view details

Wangchong Zhou

commit sha a4d6af5c02fabb93b8a5e66c49cf488feb704b4f

deps(rocks) pin lua-protobuf to 0.3

view details

Wangchong Zhou

commit sha 56ee87aa70f5332ea132197f56c9e7a798dd1f4d

chore(grpc-gateway) set priority to 998 to avoid clash with other plugins

view details

Wangchong Zhou

commit sha 68440bb0d453246639be50a52cd84ebf941fe616

chore(grpc-gateway) release: 0.1.1

view details

Wangchong Zhou

commit sha 05a47c61c09f31208912d61f50695a279e8d5ecb

fix(grpc-gateway) tag version without prefix v

view details

Wangchong Zhou

commit sha b782447b32ca63d8b6ba9f538e4036c1aa614bd7

fix(grpc-gateway) use grpcbin in tests (#6)

view details

Enrique García Cota

commit sha 0829269d5a2db11e925498bf196c0cc233076ea2

docs(grpc-gateway) fix helloservice proto in README (#7)

view details

Javier

commit sha 70d35871d1d51205601ba99ce871eb134b06e395

fix(grpc-gateway) allows `include` directives in protoc files by adding the main protoc file's directory as base for non-absolute paths

view details

Wangchong Zhou

commit sha 5f936bac9e716f807ab1e2a788d3cfb99306331c

fix(grpc-gateway) clear up output buffer when getting partial response (#12) Fix #9

view details

Wangchong Zhou

commit sha aa5f8ff0fc1779aa262a149dfc1cb5c3b366d36f

chore(grpc-gateway) release: 0.1.2 (#13)

view details

push time in 12 hours

push eventKong/kong

Wangchong Zhou

commit sha 2dfad2c4f3331af8df71ec9a72585dd082ff9a81

feat(grpc-gateway) initial commit

view details

Wangchong Zhou

commit sha 5948ba38c4fc03fb29dda9af77a54ff4a287f0b4

docs(grpc-gateway) docs and more

view details

Javier Guerra

commit sha b01137d30260ee9f61ebc6dc931cdacabcecf9d6

tests(grpc-gateway) basic tests

view details

Javier Guerra

commit sha 680262c795bca8be545aeceae495c0ad1627629c

chore(grpc-gateway) adapt .proto file to grpcbin service

view details

Javier Guerra

commit sha 3c5eddbcc362f212a066178415ff289c8ddcf3c1

fix(grpc-gateway) grpc calls are POST

view details

Javier Guerra

commit sha f8b01e82204b03f9a5d51a0335ba1709f3084a29

feat(grpc-gateway) get basic functionality working - only http methods define endpoints - force loading of lua_pack - reduce debug output

view details

Javier Guerra

commit sha 78332d36e3a8f2bb2e9979242bb9ff1f5f82df28

fix(grpc-gateway) stricter path matching

view details

Javier Guerra

commit sha 584c6e9bf8a812c288ddbefb240e673160b1e043

fix(grpc-gateway) replace positional args with named tables. scan match candidates via `ipairs()`, not `pairs()`

view details

Wangchong Zhou

commit sha 05efc0b753015065df595d8493cd51bf0d948199

doc(readme) add readme

view details

Wangchong Zhou

commit sha b23f6e86b0a12fdba26548cd1fb3935fcfbf71f2

fix(grpc-gateway) cleanup and add ci

view details

Wangchong Zhou

commit sha 0411a1fdd2c5b1db3fc3aeee0b46c6194fbfb29e

doc(readme) fix typos

view details

Wangchong Zhou

commit sha a4d6af5c02fabb93b8a5e66c49cf488feb704b4f

deps(rocks) pin lua-protobuf to 0.3

view details

Wangchong Zhou

commit sha 56ee87aa70f5332ea132197f56c9e7a798dd1f4d

chore(grpc-gateway) set priority to 998 to avoid clash with other plugins

view details

Wangchong Zhou

commit sha 68440bb0d453246639be50a52cd84ebf941fe616

chore(grpc-gateway) release: 0.1.1

view details

Wangchong Zhou

commit sha 05a47c61c09f31208912d61f50695a279e8d5ecb

fix(grpc-gateway) tag version without prefix v

view details

Wangchong Zhou

commit sha b782447b32ca63d8b6ba9f538e4036c1aa614bd7

fix(grpc-gateway) use grpcbin in tests (#6)

view details

Enrique García Cota

commit sha 0829269d5a2db11e925498bf196c0cc233076ea2

docs(grpc-gateway) fix helloservice proto in README (#7)

view details

Javier

commit sha 70d35871d1d51205601ba99ce871eb134b06e395

fix(grpc-gateway) allows `include` directives in protoc files by adding the main protoc file's directory as base for non-absolute paths

view details

Wangchong Zhou

commit sha 5f936bac9e716f807ab1e2a788d3cfb99306331c

fix(grpc-gateway) clear up output buffer when getting partial response (#12) Fix #9

view details

Wangchong Zhou

commit sha aa5f8ff0fc1779aa262a149dfc1cb5c3b366d36f

chore(grpc-gateway) release: 0.1.2 (#13)

view details

push time in 12 hours

pull request commentKong/kong

chore(plugins) import grpc gateway

Hey @hnlq715. Could you sign our CLA so your contribution to the plugin can be incorporated into our tree?

sure

gszr

comment created time in 13 hours

issue closedKong/kong

upstream healthcheck not working

i install kong 2.4.0 version,but found healthcheck not working,have restarted many times, but the problem still exists

details as follow

upstream config,from admin-api(8001/admin-api/upstreams/AUpstream) { "slots": 1000, "created_at": 1604998897, "hash_on_header": null, "name": "AUpstream", "host_header": null, "tags": null, "client_certificate": null, "hash_on_cookie": null, "hash_on_cookie_path": "/", "hash_fallback": "none", "hash_fallback_header": null, "algorithm": "consistent-hashing", "healthchecks": { "active": { "concurrency": 1, "timeout": 1, "unhealthy": { "http_statuses": [ 429, 404, 500, 501, 503, 504, 505 ], "tcp_failures": 3, "timeouts": 3, "http_failures": 3, "interval": 15 }, "http_path": "/kong/monitor/A", "https_sni": null, "https_verify_certificate": true, "healthy": { "http_statuses": [ 200, 302 ], "successes": 3, "interval": 15 }, "type": "http" }, "passive": { "type": "http", "unhealthy": { "tcp_failures": 0, "timeouts": 0, "http_failures": 0, "http_statuses": [ 429, 500, 503 ] }, "healthy": { "successes": 0, "http_statuses": [ 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308 ] } }, "threshold": 0 }, "id": "e278e758-7bec-4382-bcb2-047d6df03653", "hash_on": "ip" }

targets detail from admin-api(8001/admin-api/upstreams/AUpstream/health?size=200) { "data": [ { "upstream": { "id": "e278e758-7bec-4382-bcb2-047d6df03653" }, "tags": null, "target": "x.x.x.x:9098", "created_at": 1623325196.752, "id": "8e9e5222-3c23-47d1-8a38-5a66b7325eb1", "weight": 100 } ], "next": null, "node_id": "e34cebb7-1cac-45ca-aa30-f442fd04d460" }

error.log(in /usr/local/kong/logs/error.log),there are a lot of logs like the following, and they continue to produce 2021/06/18 15:30:28 [error] 27213#0: *63365 [lua] targets.lua:226: page_collection(): failed getting upstream health: balancer not found, client: 127.0.0.1, server: kong_admin, request: "GET /upstreams/AUpstream/health?size=200 HTTP/1.1", host: "localhost:8001"

Steps To Reproduce

  1. create service
  2. create route
  3. create upstream
  4. add targets

thanks for help,if needs more information,tell me。

closed time in 14 hours

lclin412

issue openedKong/kong

upstream healthcheck not working

i install kong 2.4.0 version,but found healthcheck not working,have restarted many times, but the problem still exists

details as follow

upstream config,from admin-api(8001/admin-api/upstreams/AUpstream) { "slots": 1000, "created_at": 1604998897, "hash_on_header": null, "name": "AUpstream", "host_header": null, "tags": null, "client_certificate": null, "hash_on_cookie": null, "hash_on_cookie_path": "/", "hash_fallback": "none", "hash_fallback_header": null, "algorithm": "consistent-hashing", "healthchecks": { "active": { "concurrency": 1, "timeout": 1, "unhealthy": { "http_statuses": [ 429, 404, 500, 501, 503, 504, 505 ], "tcp_failures": 3, "timeouts": 3, "http_failures": 3, "interval": 15 }, "http_path": "/kong/monitor/A", "https_sni": null, "https_verify_certificate": true, "healthy": { "http_statuses": [ 200, 302 ], "successes": 3, "interval": 15 }, "type": "http" }, "passive": { "type": "http", "unhealthy": { "tcp_failures": 0, "timeouts": 0, "http_failures": 0, "http_statuses": [ 429, 500, 503 ] }, "healthy": { "successes": 0, "http_statuses": [ 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308 ] } }, "threshold": 0 }, "id": "e278e758-7bec-4382-bcb2-047d6df03653", "hash_on": "ip" }

targets detail from admin-api(8001/admin-api/upstreams/AUpstream/health?size=200) { "data": [ { "upstream": { "id": "e278e758-7bec-4382-bcb2-047d6df03653" }, "tags": null, "target": "169.136.180.50:9098", "created_at": 1623325196.752, "id": "8e9e5222-3c23-47d1-8a38-5a66b7325eb1", "weight": 100 } ], "next": null, "node_id": "e34cebb7-1cac-45ca-aa30-f442fd04d460" }

error.log(in /usr/local/kong/logs/error.log),there are a lot of logs like the following, and they continue to produce 2021/06/18 15:30:28 [error] 27213#0: *63365 [lua] targets.lua:226: page_collection(): failed getting upstream health: balancer not found, client: 127.0.0.1, server: kong_admin, request: "GET /upstreams/AUpstream/health?size=200 HTTP/1.1", host: "localhost:8001"

Steps To Reproduce

  1. create service
  2. create route
  3. create upstream
  4. add targets

thanks for help,if needs more information,tell me。

created time in 16 hours

issue commentKong/kong

Grpc Web not return any response when server throw back an error response

i got the same issues. the setup works as expected in the non-error case. in case of an RPC error result, under an HTTP, a 200 OK response.

When i print the error log on client, it show "Incomplete response" with code=2. In kong proxy, i got the logs: 172.16.148.128 - - [18/Jun/2021:07:02:32 +0000] "OPTIONS /protobuf.AdminProject/ListAdminProject HTTP/2.0" 200 2 "http://localhost:3002/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 Edg/91.0.864.48" 2021/06/18 07:02:32 [error] 29#0: *654168 output on closed stream while sending to client, client: 172.16.148.128, server: kong, request: "POST /protobuf.AdminProject/ListAdminProject HTTP/2.0", upstream: "grpc://172.16.148.170:3001", host: "api.mgi.vn", referrer: "http://localhost:3002/" 172.16.148.128 - - [18/Jun/2021:07:02:32 +0000] "POST /protobuf.AdminProject/ListAdminProject HTTP/2.0" 200 0 "http://localhost:3002/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 Edg/91.0.864.48"

huynhthanhbinh

comment created time in 17 hours

startedkikito/md5.lua

started time in a day

Pull request review commentKong/kong

Kong README.md Content Refresh

 [![][kong-logo]][kong-url] -[![Build Status][badge-action-image]][badge-action-url]-[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/Kong/kong/blob/master/LICENSE)-[![Twitter](https://img.shields.io/twitter/follow/thekonginc.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=thekonginc)--Kong is a cloud-native, fast, scalable, and distributed Microservice-Abstraction Layer *(also known as an API Gateway or API Middleware)*.-Made available as an open-source project in 2015, its core values are-high performance and extensibility.--Actively maintained, Kong is widely used in production at companies ranging-from startups to Global 5000 as well as government organizations.--[Installation](https://konghq.com/install/#kong-community) |-[Documentation](https://docs.konghq.com) |-[Forum](https://discuss.konghq.com) |-[Blog](https://konghq.com/blog) |-IRC (freenode): [#kong](https://webchat.freenode.net/?channels=kong) |-[Master Builds][kong-master-builds]--## Summary--- [**Why Kong?**](#why-kong)-- [**Features**](#features)-- [**Distributions**](#distributions)-- [**Development**](#development)-- [**Enterprise Support & Demo**](#enterprise-support--demo)-- [**License**](#license)--## Why Kong?--If you are building for the web, mobile, or IoT (Internet of Things) you will-likely end up needing common functionality to run your actual software. Kong-can help by acting as a gateway (or a sidecar) for microservices requests while-providing load balancing, logging, authentication, rate-limiting,-transformations, and more through plugins.+![Stars](https://img.shields.io/github/stars/Kong/kong?style=flat-square) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/Kong/kong?style=flat-square) ![Docker Pulls](https://img.shields.io/docker/pulls/_/kong?style=flat-square) [![Build Status][badge-action-image]][badge-action-url] ![Version](https://img.shields.io/github/v/release/Kong/kong?color=green&label=Version&style=flat-square)  ![License](https://img.shields.io/badge/License-Apache%202.0-blue?style=flat-square)

Very minor, but looking at these badges again, I am thinking the order could be improved. I'd say the main ones are Build Status, Version, and License; perhaps they could come first?

PaulFischer-Kong

comment created time in a day

startedkikito/inspect.lua

started time in a day

pull request commentKong/kong

chore(plugins) import grpc gateway

Hey @hnlq715. Could you sign our CLA so your contribution to the plugin can be incorporated into our tree?

gszr

comment created time in a day

push eventKong/kong

Wangchong Zhou

commit sha 2dfad2c4f3331af8df71ec9a72585dd082ff9a81

feat(grpc-gateway) initial commit

view details

Wangchong Zhou

commit sha 5948ba38c4fc03fb29dda9af77a54ff4a287f0b4

docs(grpc-gateway) docs and more

view details

Javier Guerra

commit sha b01137d30260ee9f61ebc6dc931cdacabcecf9d6

tests(grpc-gateway) basic tests

view details

Javier Guerra

commit sha 680262c795bca8be545aeceae495c0ad1627629c

chore(grpc-gateway) adapt .proto file to grpcbin service

view details

Javier Guerra

commit sha 3c5eddbcc362f212a066178415ff289c8ddcf3c1

fix(grpc-gateway) grpc calls are POST

view details

Javier Guerra

commit sha f8b01e82204b03f9a5d51a0335ba1709f3084a29

feat(grpc-gateway) get basic functionality working - only http methods define endpoints - force loading of lua_pack - reduce debug output

view details

Javier Guerra

commit sha 78332d36e3a8f2bb2e9979242bb9ff1f5f82df28

fix(grpc-gateway) stricter path matching

view details

Javier Guerra

commit sha 584c6e9bf8a812c288ddbefb240e673160b1e043

fix(grpc-gateway) replace positional args with named tables. scan match candidates via `ipairs()`, not `pairs()`

view details

Wangchong Zhou

commit sha 05efc0b753015065df595d8493cd51bf0d948199

doc(readme) add readme

view details

Wangchong Zhou

commit sha b23f6e86b0a12fdba26548cd1fb3935fcfbf71f2

fix(grpc-gateway) cleanup and add ci

view details

Wangchong Zhou

commit sha 0411a1fdd2c5b1db3fc3aeee0b46c6194fbfb29e

doc(readme) fix typos

view details

Wangchong Zhou

commit sha a4d6af5c02fabb93b8a5e66c49cf488feb704b4f

deps(rocks) pin lua-protobuf to 0.3

view details

Wangchong Zhou

commit sha 56ee87aa70f5332ea132197f56c9e7a798dd1f4d

chore(grpc-gateway) set priority to 998 to avoid clash with other plugins

view details

Wangchong Zhou

commit sha 68440bb0d453246639be50a52cd84ebf941fe616

chore(grpc-gateway) release: 0.1.1

view details

Wangchong Zhou

commit sha 05a47c61c09f31208912d61f50695a279e8d5ecb

fix(grpc-gateway) tag version without prefix v

view details

Wangchong Zhou

commit sha b782447b32ca63d8b6ba9f538e4036c1aa614bd7

fix(grpc-gateway) use grpcbin in tests (#6)

view details

Enrique García Cota

commit sha 0829269d5a2db11e925498bf196c0cc233076ea2

docs(grpc-gateway) fix helloservice proto in README (#7)

view details

Javier

commit sha 70d35871d1d51205601ba99ce871eb134b06e395

fix(grpc-gateway) allows `include` directives in protoc files by adding the main protoc file's directory as base for non-absolute paths

view details

Wangchong Zhou

commit sha 5f936bac9e716f807ab1e2a788d3cfb99306331c

fix(grpc-gateway) clear up output buffer when getting partial response (#12) Fix #9

view details

Wangchong Zhou

commit sha aa5f8ff0fc1779aa262a149dfc1cb5c3b366d36f

chore(grpc-gateway) release: 0.1.2 (#13)

view details

push time in a day

issue openedKong/kong

Proto file with import causes error during REST call

It appears the file import works correctly, but during the protobuf encoding, there is an error that occurs. This only happens with a .proto file that imports another.

I have grpc-gateway with the latest, being loaded as a custom plugin for kong, for debugging purposes.

When I call the grpc service via grpcurl (through kong's http2 proxy listen port) it works fine.

Here's my repo I've been running some testing with: https://github.com/aaronggi/kong-project-poc

Not sure if there's something I'm missing here, but if you want to test it out, you can reproduce with the following: docker compose up --build -d &&\ curl -XGET http://localhost:8000/CommonTest1/SomeRandomString

Error in Kong log:

kong_1           | 2020/11/19 20:53:33 [error] 28#0: *2952 lua coroutine: runtime error: /usr/local/custom/kong/plugins/grpc-gateway/deco.lua:253: bad argument Kong/kong-plugin-grpc-gateway#1 to 'encode' (type '.AIRproto.CommonReq' does not exists)
kong_1           | stack traceback:
kong_1           | coroutine 0:
kong_1           |      [C]: in function 'encode'
kong_1           |      /usr/local/custom/kong/plugins/grpc-gateway/deco.lua:253: in function 'upstream'
kong_1           |      /usr/local/custom/kong/plugins/grpc-gateway/handler.lua:56: in function </usr/local/custom/kong/plugins/grpc-gateway/handler.lua:36>
kong_1           | coroutine 1:
kong_1           |      [C]: in function 'resume'
kong_1           |      coroutine.wrap:21: in function <coroutine.wrap:21>
kong_1           |      /usr/local/share/lua/5.1/kong/init.lua:756: in function 'access'
kong_1           |      access_by_lua(nginx-kong.conf:88):2: in main chunk, client: 172.20.0.1, server: kong, request: "GET /CommonTest1/Aaron HTTP/1.1", host: "localhost:8000" 
kong_1           | 2020/11/19 20:53:33 [error] 28#0: *2952 [kong] init.lua:758 [grpc-gateway] /usr/local/custom/kong/plugins/grpc-gateway/deco.lua:253: bad argument Kong/kong-plugin-grpc-gateway#1 to 'encode' (type '.AIRproto.CommonReq' does not exists), client: 172.20.0.1, server: kong, request: "GET /CommonTest1/Aaron HTTP/1.1", host: "localhost:8000"
kong_1           | 172.20.0.1 - - [19/Nov/2020:20:53:33 +0000] "GET /CommonTest1/Aaron HTTP/1.1" 500 0 "-" "PostmanRuntime/7.26.8"
kong_1           | 2020/11/19 20:53:38 [debug] 28#0: *2968 [lua] init.lua:288: [cluster_events] polling events from: 1605818313.207
kong_1           | 2020/11/19 20:53:43 [debug] 28#0: *2984 [lua] init.lua:288: [cluster_events] polling events from: 1605818313.207
kong_1           | 2020/11/19 20:53:48 [debug] 28#0: *3000 [lua] init.lua:288: [cluster_events] polling events from: 1605818313.207
kong_1           | 2020/11/19 20:53:53 [debug] 28#0: *3016 [lua] init.lua:288: [cluster_events] polling events from: 1605818313.207
kong_1           | 2020/11/19 20:53:56 [warn] 28#0: *3022 a client request body is buffered to a temporary file /usr/local/kong/client_body_temp/0000000002, client: 172.20.0.1, 
server: kong, request: "POST /CommonTest1.Test1/RunTest1 HTTP/2.0", host: "localhost:9080"
kong_1           | 2020/11/19 20:53:56 [debug] 28#0: *3022 [lua] init.lua:915: balancer(): setting address (try 1): 172.20.0.5:5005
kong_1           | 2020/11/19 20:53:56 [debug] 28#0: *3022 [lua] init.lua:944: balancer(): enabled connection keepalive (pool=172.20.0.5|5005, pool_size=60, idle_timeout=60, max_requests=100)```

created time in a day

issue openedKong/kong

the converting of json To Protobuf doesn't comply with the Protobuf3 spec

Hi,

I am testing this plugin, and found out there might be an issue for converting the value of bytes filed defined in .proto file: the plugin doesn't convert base64 string to binary bytes for bytes field defined in .proto file.

According to the spec ( https://developers.google.com/protocol-buffers/docs/proto3#json), if a field defined .proto is the type 'bytes', the plugin needs to decode the JSON value which is base64 encoding to Protobuf's binary bytes because the target gRPC service is expecting the value of this field is raw bytes content rather than base64 string.

JSON value will be the data encoded as a string using standard base64 encoding with paddings. Either standard or URL-safe base64 encoding with/without paddings are accepted.

Could you please have a checking this issue?

B.R. Albert

created time in a day

delete branch Kong/kong

delete branch : chore/import-grpc-gateway

delete time in a day

push eventKong/kong

Wangchong Zhou

commit sha 2dfad2c4f3331af8df71ec9a72585dd082ff9a81

feat(grpc-gateway) initial commit

view details

Wangchong Zhou

commit sha 5948ba38c4fc03fb29dda9af77a54ff4a287f0b4

docs(grpc-gateway) docs and more

view details

Javier Guerra

commit sha b01137d30260ee9f61ebc6dc931cdacabcecf9d6

tests(grpc-gateway) basic tests

view details

Javier Guerra

commit sha 680262c795bca8be545aeceae495c0ad1627629c

chore(grpc-gateway) adapt .proto file to grpcbin service

view details

Javier Guerra

commit sha 3c5eddbcc362f212a066178415ff289c8ddcf3c1

fix(grpc-gateway) grpc calls are POST

view details

Javier Guerra

commit sha f8b01e82204b03f9a5d51a0335ba1709f3084a29

feat(grpc-gateway) get basic functionality working - only http methods define endpoints - force loading of lua_pack - reduce debug output

view details

Javier Guerra

commit sha 78332d36e3a8f2bb2e9979242bb9ff1f5f82df28

fix(grpc-gateway) stricter path matching

view details

Javier Guerra

commit sha 584c6e9bf8a812c288ddbefb240e673160b1e043

fix(grpc-gateway) replace positional args with named tables. scan match candidates via `ipairs()`, not `pairs()`

view details

Wangchong Zhou

commit sha 05efc0b753015065df595d8493cd51bf0d948199

doc(readme) add readme

view details

Wangchong Zhou

commit sha b23f6e86b0a12fdba26548cd1fb3935fcfbf71f2

fix(grpc-gateway) cleanup and add ci

view details

Wangchong Zhou

commit sha 0411a1fdd2c5b1db3fc3aeee0b46c6194fbfb29e

doc(readme) fix typos

view details

Wangchong Zhou

commit sha a4d6af5c02fabb93b8a5e66c49cf488feb704b4f

deps(rocks) pin lua-protobuf to 0.3

view details

Wangchong Zhou

commit sha 56ee87aa70f5332ea132197f56c9e7a798dd1f4d

chore(grpc-gateway) set priority to 998 to avoid clash with other plugins

view details

Wangchong Zhou

commit sha 68440bb0d453246639be50a52cd84ebf941fe616

chore(grpc-gateway) release: 0.1.1

view details

Wangchong Zhou

commit sha 05a47c61c09f31208912d61f50695a279e8d5ecb

fix(grpc-gateway) tag version without prefix v

view details

Wangchong Zhou

commit sha b782447b32ca63d8b6ba9f538e4036c1aa614bd7

fix(grpc-gateway) use grpcbin in tests (#6)

view details

Enrique García Cota

commit sha 0829269d5a2db11e925498bf196c0cc233076ea2

docs(grpc-gateway) fix helloservice proto in README (#7)

view details

Javier

commit sha 70d35871d1d51205601ba99ce871eb134b06e395

fix(grpc-gateway) allows `include` directives in protoc files by adding the main protoc file's directory as base for non-absolute paths

view details

Wangchong Zhou

commit sha 5f936bac9e716f807ab1e2a788d3cfb99306331c

fix(grpc-gateway) clear up output buffer when getting partial response (#12) Fix #9

view details

Wangchong Zhou

commit sha aa5f8ff0fc1779aa262a149dfc1cb5c3b366d36f

chore(grpc-gateway) release: 0.1.2 (#13)

view details

push time in a day

PR merged Kong/kong

chore(plugins) import grpc gateway

As a result of an effort to improve external plugins maintainership, we are importing currently-bundled plugins into Kong's main tree. The grpc-gateway plugin used to live in [1].

Additionally to importing plugin contents, this PR also preserves the Git history. History was amended to correct commit scopes - including grpc-gateway in commit messages scope.

Note: this also fixes the current failure observed in master tests.

[1] https://github.com/Kong/kong-plugin-grpc-gateway

+764 -1

1 comment

9 changed files

gszr

pr closed time in a day

Pull request review commentKong/kong

chore(plugins) import grpc gateway

+package = "kong-plugin-grpc-gateway"

as i remember, we agreed to preserve the individual plugin's rockspecs, for the (remote) possibility of installing them separately. of course, none of the distribution images would use LuaRocks for that.

gszr

comment created time in a day

Pull request review commentKong/kong

chore(plugins) import grpc gateway

+package = "kong-plugin-grpc-gateway"

Is this rockspec being picked up? If not we can remove it (and pin the dependency below in Kong's rockspec, which there's already pinneed, so we can just remove this file)

gszr

comment created time in a day

PR opened Kong/kong

Reviewers
fix(tests) add server header on mock upstream responses pr/please review

Summary

Needed with: https://github.com/Kong/kong-build-tools/pull/401

The testing branch is here (currently is has issues with grpc-plugin tests): https://github.com/Kong/kong/pull/7465

+2 -1

0 comment

2 changed files

pr created time in a day

push eventKong/kong

Aapo Talvensaari

commit sha f3f236a8a9e946138404275076f100674afc9a35

fix(tests) add server header on mock upstream responses ### Summary Needed with: https://github.com/Kong/kong-build-tools/pull/401

view details

push time in a day

push eventKong/kong

Aapo Talvensaari

commit sha 6969cbf11f582cb7daba7efd3d8b2b71ccf4dd21

fix(tests) add server header on mock upstream responses ### Summary Needed with: https://github.com/Kong/kong-build-tools/pull/401

view details

push time in a day

create barnchKong/kong

branch : tests/mock-upstream

created branch time in a day

issue commentKong/kong

AttributeError: 'Namespace' object has no attribute 'dump_info'

@fffonion Thank you for your help, I think that I found the problem and a solution/workaround

Please find below the details:

Introduction:

log_level: debug - has been already set pluginserver_py_start_cmd: /opt/test/py-hello.py -vvv - has been added

Kong:

2021/06/17 14:14:28 [debug] 1#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: grpc-gateway
2021/06/17 14:14:28 [debug] 1#0: [kong] process.lua:62 search config for pluginserver named: py
2021/06/17 14:14:28 [debug] 1#0: [kong] mp_rpc.lua:19 mp_rpc.new: /usr/local/kong/py.sock
2021/06/17 14:14:29 [debug] 1#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: py-hello
2021/06/17 14:14:29 [debug] 1#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: jwt

An interesting finding:

  • Kong restart

    • kong-api shows that plugin has been loaded (please find above posted logs)
    • no errors
  • 1st request

    • it was processed but
    [crit] 30#0: *120 connect() to unix:/usr/local/kong/py.socket failed (2: No such file or directory), client: 100.96.4.0, server: kong, request: "GET /foo HTTP/1.1", host: "kong-test.staging.k8s.example.com"
    [error] 30#0: *120 [kong] mp_rpc.lua:181 [py-hello] trying to connect: no such file or directory, client: 100.96.4.0, server: kong, request: "GET /foo HTTP/1.1", host: "kong-test.staging.k8s.example.com"
    [crit] 30#0: *120 connect() to unix:/usr/local/kong/py.socket failed (2: No such file or directory), client: 100.96.4.0, server: kong, request: "GET /foo HTTP/1.1", host: "kong-test.staging.k8s.example.com"
    [error] 30#0: *120 [kong] mp_rpc.lua:181 [py-hello] trying to connect: no such file or directory, client: 100.96.4.0, server: kong, request: "GET /foo HTTP/1.1", host: "kong-test.staging.k8s.example.com"
    [error] 30#0: *120 [kong] mp_rpc.lua:308 [py-hello] no such file or directory, client: 100.96.4.0, server: kong, request: "GET /foo HTTP/1.1", host: "kong-test.staging.k8s.example.com"
    [debug] 30#0: *120 [lua] init.lua:955: balancer(): setting address (try 1): 100.96.9.2:8080
    [debug] 30#0: *120 [lua] init.lua:984: balancer(): enabled connection keepalive (pool=100.96.9.2|8080, pool_size=60, idle_timeout=60, max_requests=100)
    "GET /foo HTTP/1.1" 200 1499 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36"
    
    -  `py-hello` plugin hasn't been used (no additional custom http headers in response)
    
  • 2nd request

    • no response (http 503 gateway timeout)
    • not even a trace in logs

Issue:

Plugin configuration:

  plugins: bundled, py-hello
  pluginserver_names: py

  pluginserver_py_socket: /usr/local/kong/py.socket
  pluginserver_py_start_cmd: /plugins/py-hello.py -vvv
  pluginserver_py_query_cmd: /plugins/py-hello.py -dump

Error from the log: to unix:/usr/local/kong/py.socket failed (2: No such file or directory),

What we have on POD: srwxr-xr-x 1 kong nogroup 0 Jun 17 15:00 py_hello.sock

Issue: Plugin doesn't use value which has been set in pluginserver_py_socket:

Solution:

Configure: pluginserver_py_socket: /usr/local/kong/py_hello.sock (plugin name where all hyphens have to be converted to underscores)

mpromny

comment created time in a day

push eventKong/kong

Aapo Talvensaari

commit sha 0b9afa5ee0b568443d45f63ea01ed8e871613a54

fix(tests) add server header on mock upstream responses ### Summary Needed with: https://github.com/Kong/kong-build-tools/pull/401

view details

push time in a day

push eventKong/kong

Datong Sun

commit sha b51a337e12f731045337dd747ce2b169f53121c2

add multi worker support

view details

push time in a day

push eventKong/kong

Datong Sun

commit sha 0c226a8251cf79f119b58b180821010286a26ed2

fix template

view details

push time in a day

push eventKong/kong

Datong Sun

commit sha 5a9fa01698eeb4abb3bf0fce901c1009a8cc57b9

add heartbeat check

view details

push time in a day

push eventKong/kong

Datong Sun

commit sha 5d258377dfa4f4a9bca9d4f8a82cbeaaadfc8d00

add heartbeat check

view details

push time in a day

issue commentKong/kong

AttributeError: 'Namespace' object has no attribute 'dump_info'

@fffonion Unfortunately, nothing.

mpromny

comment created time in a day