Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset error when trying to start when logged in via GitHub #244

Closed
JakeGinnivan opened this issue May 31, 2023 · 10 comments
Closed

Offset error when trying to start when logged in via GitHub #244

JakeGinnivan opened this issue May 31, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@JakeGinnivan
Copy link

Hey team,

I thought I'd try and give the CLI version a spin.

devtunnel host -p 5200

The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')

This appears to be an issue when authenticated via GitHub.

Unhandled exception: System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')
   at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
   at System.DateTimeOffset..ctor(DateTime dateTime)
   at System.DateTimeOffset.op_Implicit(DateTime dateTime)
   at Microsoft.DevTunnels.Cli.Authentication.GitHubApp.AcquireTokenSilentAsync(String[] scopes, IAccount account, CancellationToken cancellation) in /Users/runner/work/1/s/src/Tunnel/Src/CLI/Authentication/GitHubApp.cs:line 125
   at Microsoft.DevTunnels.Cli.Authentication.UserManager.GetCurrentUserAsync(CommonOptions options, CancellationToken cancellation) in /Users/runner/work/1/s/src/Tunnel/Src/CLI/Authentication/UserManager.cs:line 70
   at Microsoft.DevTunnels.Cli.Commands.HostCommand.HostAsync(UInt16[] portNumbers, String protocol, String sshUser, TunnelCommandOptions options, CancellationToken cancellation) in /Users/runner/work/1/s/src/Tunnel/Src/CLI/Commands/HostCommand.cs:line 106
@JakeGinnivan JakeGinnivan changed the title Offset error when trying to start Offset error when trying to start when logged in via GitHub May 31, 2023
@derekbekoe
Copy link
Contributor

Hi @JakeGinnivan - Can you share which version of the CLI you're using ( devtunnel --version)?

@JakeGinnivan
Copy link
Author

Tunnel CLI version: 1.0.638+7e28ef7e72

Tunnel service URI : https://global.rel.tunnels.api.visualstudio.com/
Tunnel service version : 1.0.614.42051 (43a4be1a72; 2023-05-16 00:31:50Z)
Tunnel service cluster : aue

@derekbekoe
Copy link
Contributor

Thanks for reporting this. We'll take a look.

@setaskin
Copy link
Contributor

Hi, @JakeGinnivan , which time zone are you in ?

@JakeGinnivan
Copy link
Author

JakeGinnivan commented May 31, 2023

I'm in Perth, Western Australia. +8

By the way, it works if I sign in with my AAD account. So it's just GitHub auth which is the issue

@setaskin setaskin added the bug Something isn't working label Jun 1, 2023
@setaskin
Copy link
Contributor

setaskin commented Jun 1, 2023

The fix is checked in and it will be available in the next release.

@JakeGinnivan
Copy link
Author

Thanks for that!

@setaskin
Copy link
Contributor

the fix is released.

@setaskin
Copy link
Contributor

Please make sure you have the latest CLI version. :) Closing the issue. Feel free to re-open if you see any issues with it.

@JakeGinnivan
Copy link
Author

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants