Azure / app-service-linux-docs

Azure App Service: Frequently Asked Questions on Linux App Service
Creative Commons Attribution 4.0 International
139 stars 79 forks source link

grpc suddenly stopped working for flutter app 502 net 7.0 #198

Closed TarunConnectInk closed 11 months ago

TarunConnectInk commented 11 months ago

Team, We are using Azure App Service Linux with HTTP 2.0 enabled with proxy and have the HTTP20_ONLY_PORT defined to 8585.

These settings work for both our grpc-web angular and grpc dart for sometime now. Recently from a week back we see 502 for grpc flutter app. grpc-web continues to work fine. No changes to core settings in app service.

Any pointers on how to debug the issue? (I tested with local instance and it works fine)

Please help with this

Error trace I/flutter ( 4675): ├ 🚨 handle errors here gRPC Error (code: 2, codeName: UNKNOWN, message: HTTP connection completed with 502 instead of 200, details: [], rawResponse: null, trailers: {date: Wed, 01 Nov 2023 19:45:24 GMT, content-length: 1477}) E/flutter ( 4675): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: gRPC Error (code: 2, codeName: UNKNOWN, message: HTTP connection completed with 502 instead of 200, details: [], rawResponse: null, trailers: {date: Wed, 01 Nov 2023 19:45:24 GMT, content-length: 1477}) E/flutter ( 4675): E/flutter ( 4675): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: gRPC Error (code: 2, codeName: UNKNOWN, message: HTTP connection completed with 502 instead of 200, details: [], rawResponse: null, trailers: {date: Wed, 01 Nov 2023 19:45:24 GMT, content-length: 1477}) E/flutter ( 4675): E/flutter ( 4675): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: gRPC Error (code: 2, codeName: UNKNOWN, message: HTTP connection completed with 502 instead of 200, details: [], rawResponse: null, trailers: {date: Wed, 01 Nov 2023 19:45:24 GMT, content-length: 1477}) E/flutter ( 4675):

server logs to show whats running docker run -d --expose=8080 --expose=8585 --name connectink_2_e9b99598 -e WEBSITE_USE_DIAGNOSTIC_SERVER=true -e WEBSITE_SITE_NAME=connectink -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=connectink.azurewebsites.net -e WEBSITE_INSTANCE_ID=26f56173e87ea5dde43c70307e4ff4a7e6b1549f0813ee269a8ae0d2321a0685 -e HTTP_LOGGING_ENABLED=1 -e ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=Microsoft.ApplicationInsights.StartupBootstrapper -e

TarunConnectInk commented 11 months ago

Free tier app service stopped support. Upgraded to basic plan and it works.