You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/24 10:29:11 UTC
[GitHub] [apisix] doudouliyougangbeng opened a new issue #6441: How use "google.protobuf.Any"?
doudouliyougangbeng opened a new issue #6441:
URL: https://github.com/apache/apisix/issues/6441
### Issue description
curl http://127.0.0.1:8081/apisix/admin/proto/1 -H 'X-API-KEY: XXX' -X PUT -d '
{
"content" : "syntax = \"proto3\";
import "google/protobuf/any.proto";
...
}
{"error_msg":"invalid content: \/usr\/local\/tapisix\/\/deps\/share\/lua\/5.1\/protoc.lua:335: attempt to index field 'node' (a nil value)"}
{"error_msg":"invalid content: \/usr\/local\/tapisix\/\/deps\/share\/lua\/5.1\/protoc.lua:915: filename for loaded:88:3: unknown type 'google.protobuf.Any'"}
How to solve this problem?
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1053461465
There is no need to rewrite grpc-transcode. We support loading a compiled `.pb` file.
See "First of all, let's create a .pb file from .proto files:" and the content below in https://github.com/apache/apisix/blob/03324ee6f9940020a129f18c11c337e6bd40660f/docs/en/latest/plugins/grpc-transcode.md#add-a-proto
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1058922759
Consider solved. Feel free to reopen it if need.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1053519138
Note that this feature is just added this month. It is not in any release yet. We will release 2.13 in March with this feature included.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] xuchmao edited a comment on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
xuchmao edited a comment on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1050565874
1. Rewrite plugin grpc-transcode
2. Store google protobuf files and your proto files locally
3. Use protoc.loadfile to compile proto


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] xuchmao edited a comment on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
xuchmao edited a comment on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1050565874
1. Rewrite plugin grpc-transcode
2. Store google protobuf files locally
3. Use protoc.loadfile to compile proto


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] xuchmao commented on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
xuchmao commented on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1050565874
1. Rewrite plugin grpc-transcode
2. Store google protobuf files locally
3. Use protoc.loadfile to compile proto


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] tokers commented on issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6441:
URL: https://github.com/apache/apisix/issues/6441#issuecomment-1050424008
@doudouliyougangbeng See https://github.com/apache/apisix/blob/03324ee6f9940020a129f18c11c337e6bd40660f/docs/en/latest/plugins/grpc-transcode.md#add-a-proto.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #6441: How use "google.protobuf.Any"?
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #6441:
URL: https://github.com/apache/apisix/issues/6441
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org