microsoft/dev-tunnels

Deserialization error, any command forms the CLI now crash

clemlesne opened this issue · 4 comments

Impact

Any command forms the CLI now crash. Includes devtunnel list, devtunnel show, and devtunnel create.

Short error

devtunnel list and devtunnel show:

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

devtunnel create:

Object reference not set to an instance of an object.

Full logs

devtunnel list and devtunnel show:

❯ devtunnel list --verbose
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: xxx

devtunnel create:

❯ devtunnel create claim-ai-clemsmacbook --allow-anonymous --expiration 7d
Object reference not set to an instance of an object.

Versions

  • Dev Tunnels: 1.0.1287+aefc2476d4
  • OS: macOS 14.4.1

Apologies for the issue. Please see #438 (comment). Updating to the latest version should resolve your issue.

@derekbekoe No way to update currently, https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1290+8d780f0d7b/osx-x64-devtunnel-zip still contains the same broken 1.0.1287+aefc2476d4 inside of it

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

Closing as resolved - #438 (comment)