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/10/27 05:33:51 UTC
[GitHub] [apisix] YangChaorix opened a new issue, #8186: help request: upstream rejected request with error 2 while reading response header from upstream
YangChaorix opened a new issue, #8186:
URL: https://github.com/apache/apisix/issues/8186
### Description
error:
upstream rejected request with error 2 while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /grpc/getAccount HTTP/1.1", upstream: "grpc://127.0.0.1:5200", host: "127.0.0.1:9080"
config:
{
"uri": "/grpc/getAccount",
"name": "grpc转换(3)",
"methods": [
"GET",
"POST"
],
"plugins": {
"grpc-transcode": {
"method": "GetAccount",
"proto_id": "account",
"service": "MD.BasicService.AccountService"
}
},
"upstream": {
"nodes": [
{
"host": "127.0.0.1",
"port": 5200,
"weight": 1
}
],
"type": "roundrobin",
"scheme": "grpc"
},
"status": 1
}
but grpcurl test is ok
./grpcurl -plaintext -import-path ./protos -proto account2.proto \
> -d '{"account":"test1"}' 127.0.0.1:5200 MD.BasicService.AccountService.GetAccount
{
"code": 1,
"message": "成功",
"data": {
}
}
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Hazel6869 commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294389273
> What a head-scratcher
why do you need dotnet grpc, may be it's a language compatibility issue. i also do experiment.
--
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 #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294311832
> @YangChaorix Hi, I don't see your input parameter "account: test1" in the request withAPISIX. Do you do it? 
Exactly, you need to pass the message.
--
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] Hazel6869 commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294378770
@YangChaorix Error 2 is an UNKNOWN error, this one has no more details... 😅
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1293036420
> @YangChaorix Hi, there are error detail?
detail? there have only apisix error.log..
--
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 #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294526036
> nodejs or java grpc server config transcode ok
only dotnet grpc server config transcode fail
I am afraid I know nothing about dotnet. Maybe the gRPC server implementation in dotnet is a bit different from those in nodejs/Java.
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1296682035
> you can set `grpc_set_header Te trailers;` in your ngx_tpl.lua
please tell me how to set.
set here ?
<img width="728" alt="image" src="https://user-images.githubusercontent.com/24434787/198951819-d7f6efcf-dc08-43f9-b16b-64cb7c8bc4b4.png">
--
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] Hazel6869 commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294308025
@YangChaorix Hi, I don't see your input parameter "account: test1" in the request withAPISIX.
--
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] Hazel6869 commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1293031217
@YangChaorix Hi, there are error detail?
--
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] Hazel6869 commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294353395
> @tokers the input parameter "account: test1" is not required, even if I add parameters, the result is still the same; <img alt="image" width="1063" src="https://user-images.githubusercontent.com/24434787/198453041-9aa31c8a-4ea0-42ff-931a-f9d4675e4193.png">
>
> so, how i can debug the upstream error response and see it in the log; thanks a lot!!
Before enabling the Plugin, you have to add the content of your .proto or .pb files to APISIX. Do you do it ?
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294583862
> > nodejs or java grpc server config transcode ok
> > only dotnet grpc server config transcode fail
>
> I am afraid I know nothing about dotnet. Maybe the gRPC server implementation in dotnet is a bit different from those in nodejs/Java.
thanks a lot !! I'll try again
--
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] tzssangglass closed issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
tzssangglass closed issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
URL: https://github.com/apache/apisix/issues/8186
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294397512
> > What a head-scratcher
>
> why do you need dotnet grpc, may be it's a language compatibility issue. i also do experiment.
we use different grpc server node,java,go,dotnet provide interface server,use apisix to transcode to http.
so you know ;which languages can not compatible ?such as dotnet..
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1293298762
@tokers I have perfected the question,please have a look, thanks
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294344123
@tokers the input parameter "account: test1" is not required, even if I add parameters, the result is still the same;
<img width="1063" alt="image" src="https://user-images.githubusercontent.com/24434787/198453041-9aa31c8a-4ea0-42ff-931a-f9d4675e4193.png">
so, how i can debug the upstream error response and see it in the log; thanks a lot!!
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294386566
> @YangChaorix Error 2 is an UNKNOWN error, this one has no more details... 😅
What a head-scratcher! i lost all my hair🤔
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1296718090
> you can set `grpc_set_header Te trailers;` in your ngx_tpl.lua
The problem has been solved, thanks a lot!!
--
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] zhongzhiqiang commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
zhongzhiqiang commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1296669128
you can set `grpc_set_header Te trailers;` in your ngx_tpl.lua
--
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] Hazel6869 commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
Hazel6869 commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294404223
> > > What a head-scratcher
> >
> >
> > why do you need dotnet grpc, may be it's a language compatibility issue. i also do experiment.
>
> we use different grpc server node,java,go,dotnet provide interface server,use apisix to transcode to http.
>
> so you know ;which languages can not compatible ?such as dotnet..
@spacewander do you know this case?
--
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] YangChaorix closed issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix closed issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
URL: https://github.com/apache/apisix/issues/8186
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1293045477
@Hazel6869 you need other error detail? can you guide me? thanks
--
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 #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1293273262
1. What's the protobuf file that you uploaded?
2. How did you send request via APISIX?
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1293034189
> @YangChaorix Hi, there are error detail?
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294362656
> > @tokers the input parameter "account: test1" is not required, even if I add parameters, the result is still the same; <img alt="image" width="1063" src="https://user-images.githubusercontent.com/24434787/198453041-9aa31c8a-4ea0-42ff-931a-f9d4675e4193.png">
> > so, how i can debug the upstream error response and see it in the log; thanks a lot!!
>
> @YangChaorix Before enabling the Plugin, you have to add the content of your .proto or .pb files to APISIX. Do you do it ?
@Hazel6869
--
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] YangChaorix commented on issue #8186: help request: upstream rejected request with error 2 while reading response header from upstream
Posted by GitBox <gi...@apache.org>.
YangChaorix commented on issue #8186:
URL: https://github.com/apache/apisix/issues/8186#issuecomment-1294362192
>
yes, i do it, .proto or .pb files i had tried both
<img width="635" alt="image" src="https://user-images.githubusercontent.com/24434787/198465207-dab437bc-331b-4701-a94a-417f8e9edfc6.png">
<img width="647" alt="image" src="https://user-images.githubusercontent.com/24434787/198465361-08975aed-9d73-462c-a42e-4fa42b6bdf4e.png">
--
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