microsoft / dev-tunnels

Dev Tunnels SDK
MIT License
286 stars 20 forks source link

command with devtunnel full path will have error #438

Closed ayachensiyuan closed 4 months ago

ayachensiyuan commented 4 months ago

devtunnel version: 1.0.1284+d45d2345c4

image
vokom commented 4 months ago

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

markwalsh-liverpool commented 4 months ago

I get the same on Windows

vokom commented 4 months ago

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

derekbekoe commented 4 months ago

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

jramsay commented 4 months ago

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

ayachensiyuan commented 4 months ago

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

dgmjr commented 4 months ago

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

bak1an commented 4 months ago

@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?

derekbekoe commented 4 months ago

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

clemlesne commented 4 months ago

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

clemlesne commented 4 months ago

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…

jramsay commented 4 months ago

@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.

bak1an commented 4 months ago

It works, thanks!