OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
461 stars 189 forks source link

DevTunnelNotPublicError #11934

Open mmsharepoint opened 4 months ago

mmsharepoint commented 4 months ago

When Creating a new Dev Tunnel with Visual Studio 10.3 I received the error "The dev tunnel with the name '' is not set to public access. Please use a public dev tunnel in the debug dropdown menu (Dev Tunnels) to prepare Teams app."

To Reproduce Steps to reproduce the behavior:

  1. In the debug dropdown menu, select Dev Tunnels > Create a Tunnel (set authentication type to Public, temporary, GitHub user)
  2. Right-click the 'TeamsApp' project and select Teams Toolkit > Prepare Teams App Dependencies

Expected behavior Prepare Teams App Dependencies should succeed

VS 2022 Professional 10.3 TTK 17.10.63.65054

Additional context If I use an older Dev Tunnel in an existing and updated version it works If I use a new Dev Tunnel in an existing and updated version OR in a fresh VS installation (and here is my problem right now) it doesn't work.

Similar issues was reported a while a ago but should have been fixed as per versions...?

11136

xiaolang124 commented 4 months ago

Thanks for the feedback. It seems that we cannot retrieve all dev tunnels from the GitHub account in our toolkit extension. We will investigate this further.

In the meantime, there is a workaround you can try: use a work account to create a dev tunnel. You can register or use an Outlook account for this purpose.

image

mmsharepoint commented 4 months ago

Thanks for the feedback. It seems that we cannot retrieve all dev tunnels from the GitHub account in our toolkit extension. We will investigate this further.

Thanks for the update. I was also wondering if there is a way I can see my dev tunnels ´per GitHub account OVER several VS (de)installations?? This might help

xiaolang124 commented 4 months ago

You can view all your dev tunnels in the Dev Tunnel Window. All your dev tunnel information is available there.

image image

mmsharepoint commented 4 months ago

Yes I saw this but that seems Visual Studio / Machine related. If I use several instances (VMs e.g.) is there an overview overall? I recently "killed" a VM. Do the used Dev Tunnels there (connected to GitHub account) "waste" something and could I still access and clean it somehow? Just curious

xiaolang124 commented 4 months ago

Yes, it provides an overall view. You can see the usage status and manage the port in this management view.