Skip to content

Conversation

@JunTaoLuo
Copy link
Contributor

@JunTaoLuo JunTaoLuo commented Jun 23, 2019

@Eilon Eilon added the area-grpc Includes: GRPC wire-up, templates label Jun 23, 2019
@JunTaoLuo JunTaoLuo marked this pull request as ready for review June 25, 2019 04:47
@JunTaoLuo JunTaoLuo force-pushed the johluo/grpc-templates branch from 6712d8e to e64daf3 Compare June 25, 2019 04:47
@JunTaoLuo JunTaoLuo requested review from JamesNK and shirhatti June 25, 2019 04:47
@JunTaoLuo
Copy link
Contributor Author

I'm able to test the project template in VS and command line. I've tested the item template on the command line but I don't think there's a good way to test it in vs cc @BillHiebert @phenning ?

@shirhatti shirhatti closed this Jun 25, 2019
@shirhatti shirhatti reopened this Jun 25, 2019
@shirhatti
Copy link
Contributor

@JunTaoLuo Can you confirm this blows up on a Mac as expected by #11061?

@JunTaoLuo
Copy link
Contributor Author

Error at startup:

warn: Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to bind to https://localhost:5001 on the IPv4 loopback interface: 'HTTP/2 over TLS is not supported on OSX due to missing ALPN support.'.
warn: Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to bind to https://localhost:5001 on the IPv6 loopback interface: 'HTTP/2 over TLS is not supported on OSX due to missing ALPN support.'.
crit: Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to start Kestrel.
System.IO.IOException: Failed to bind to address https://localhost:5001.
 ---> System.AggregateException: One or more errors occurred. (HTTP/2 over TLS is not supported on OSX due to missing ALPN support.) (HTTP/2 over TLS is not supported on OSX due to missing ALPN support.)
 ---> System.NotSupportedException: HTTP/2 over TLS is not supported on OSX due to missing ALPN support.
   at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware..ctor(ConnectionDelegate next, HttpsConnectionAdapterOptions options, ILoggerFactory loggerFactory)
   at Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.<>c__DisplayClass12_0.<UseHttps>b__0(ConnectionDelegate next)
   at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.Build()
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context)
   --- End of inner exception stack trace ---
 ---> (Inner Exception #1) System.NotSupportedException: HTTP/2 over TLS is not supported on OSX due to missing ALPN support.
   at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware..ctor(ConnectionDelegate next, HttpsConnectionAdapterOptions options, ILoggerFactory loggerFactory)
   at Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.<>c__DisplayClass12_0.<UseHttps>b__0(ConnectionDelegate next)
   at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.Build()
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context)<---

@JunTaoLuo
Copy link
Contributor Author

😮 We still call it OSX instead of macOS?

@shirhatti
Copy link
Contributor

We still call it OSX instead of macOS?

Looks like we aren't consistent. We're all over the place on this 😞

@shirhatti
Copy link
Contributor

@DamianEdwards FYI. Based on our conversation earlier, the gRPC templates will use HTTPS by default. It will blow up on macOS on Startup where there is no server-side ALPN.

Copy link
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to double check with Jan about why gRPC samples use ports in 5005x.

Also need to update the linked tutorial to add HTTPS, and change the port used in it. Shouldn't be merged until preview 7 ships

<GoogleProtobufPackageVersion>3.8.0</GoogleProtobufPackageVersion>
<GrpcAspNetCoreServerPackageVersion>0.1.21-pre1</GrpcAspNetCoreServerPackageVersion>
<GrpcToolsPackageVersion>1.21.0</GrpcToolsPackageVersion>
<GrpcAspNetCorePackageVersion>0.1.22-pre1</GrpcAspNetCorePackageVersion>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. Need to publish a version of this metapackage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll update this to 0.1.22-pre2 when it gets published. this version is currently published to the nightly feed so we this PR is unblocked.

@ryanbrandenburg
Copy link
Contributor

##[error]src\SignalR\samples\SocialWeather\SocialWeather.csproj(0,0): error NU1604: Project dependency Google.Protobuf does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.

Looks like this broke the SignalR samples because it removed the Google.Protobuf version.

@JunTaoLuo
Copy link
Contributor Author

Ahh... I thought we were the only ones using it.

@JunTaoLuo JunTaoLuo force-pushed the johluo/grpc-templates branch from ec9aa55 to 4da74df Compare June 25, 2019 18:06
@ryanbrandenburg
Copy link
Contributor

Ahh... I thought we were the only ones using it.

It's good practice to do a "Ctrl-F" of the whole repo for references before removing anything (class, package, etc). Even if it SHOULDN'T be used by something else sometimes it is anyway.

@JunTaoLuo JunTaoLuo merged commit 82149f9 into master Jun 27, 2019
@JunTaoLuo JunTaoLuo deleted the johluo/grpc-templates branch June 27, 2019 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-grpc Includes: GRPC wire-up, templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants