microsoft/dev-tunnels

command with devtunnel full path will have error

ayachensiyuan opened this issue · 13 comments

devtunnel version: 1.0.1284+d45d2345c4

image

Having the same issue after updating devtunnels to the latest version on Linux today.

I get the same on Windows

I rolled it back by manually downloading previous version from
https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1249+67b1cd300c/linux-x64-devtunnel
and then replacing the binary

Thanks for reporting this and apologies for the issues. We're taking a look into this.

@ayachensiyuan , @vokom , @markwalsh-liverpool : thanks for flagging this! The latest release (1.0.1290+8d780f0d7b) should resolve the issue.

macOS still have this issue, Please fix it, thank you.

Me too! Now I'm wishing I didn't upgrade this morning because I can't figure out how to rollback!! 😟

@jramsay Somehow https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1290+8d780f0d7b/osx-x64-devtunnel-zip (which is what homebrew downloads) still contains 1.0.1287+aefc2476d4 version, which is broken:

$ wget https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1290+8d780f0d7b/osx-x64-devtunnel-zip 
--2024-04-28 14:34:15--  https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1290+8d780f0d7b/osx-x64-devtunnel-zip
Resolving tunnelsassetsprod.blob.core.windows.net (tunnelsassetsprod.blob.core.windows.net)... 20.150.78.164, 20.150.78.36, 20.150.78.100
Connecting to tunnelsassetsprod.blob.core.windows.net (tunnelsassetsprod.blob.core.windows.net)|20.150.78.164|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7875508 (7.5M) [application/zip]
Saving to: ‘osx-x64-devtunnel-zip’

osx-x64-devtunnel-zip                                          100%[====================================================================================================================================================>]   7.51M   443KB/s    in 22s

2024-04-28 14:34:39 (344 KB/s) - ‘osx-x64-devtunnel-zip’ saved [7875508/7875508]

$ unzip osx-x64-devtunnel-zip   
Archive:  osx-x64-devtunnel-zip
  inflating: devtunnel

$ ./devtunnel --version    
1.0.1287+aefc2476d4

$ ./devtunnel list   
Tunnel service response deserialization error: Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'Microsoft.DevTunnels.Contracts.TunnelListByRegionResponse'. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
Request ID: 27d09164-5ab6-4a0c-adbc-2c6b6aead52d

Is there any way to download actual 1.0.1290+8d780f0d7b somewhere?

Until we resolve the issue with the latest versions, for now, on macOS, you can revert to the previous known good version via https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1249+67b1cd300c/osx-x64-devtunnel-zip

I confirm it does work with the build 1.0.1249+67b1cd300c.

Me too! Now I'm wishing I didn't upgrade this morning because I can't figure out how to rollback!! 😟

# Uninstall last version
brew uninstall devtunnel
# Download cask file related to our version
curl -o devtunnel.rb https://raw.githubusercontent.com/Homebrew/homebrew-cask/81121edbc02fe46ed33776aff983cc91e2d35e1a/Casks/d/devtunnel.rb
# Install from the local cask file
brew install devtunnel.rb

@dgmjr, yet I know, rollbacks with Homebrew sucks…

@clemlesne, @bak1an, @ayachensiyuan, @dgmjr: thanks for letting us know that there was an issue with the macOS release! The latest release on Homebrew (1.0.1293+4a61ac5730) should resolve the issue.

It works, thanks!