beamable / BeamableProduct

The beamable product suite including com.beamable, com.beamable.server, microservice base image, portal, the installer, and build scripts
Other
4 stars 0 forks source link

CLI QA - beam init cannot accept option flags #3416

Closed cdhanna closed 1 month ago

cdhanna commented 1 month ago

Should have worked, but instead it looks like it got caught in a file system bug

beam init --cid=$CID --pid=$PID --email=$EMAIL --password=$PASSWORD

log, (values obfuscated)

2024-05-23 10:28:31.653 -04:00 [DBG] Trying to get option=ConfigDirOption from Env Vars! Value Found=
2024-05-23 10:28:31.672 -04:00 [DBG] Trying to get option=CidOption from Env Vars! Value Found=
2024-05-23 10:28:31.672 -04:00 [DBG] Trying to get option=PidOption from Env Vars! Value Found=
2024-05-23 10:28:31.672 -04:00 [DBG] Trying to get option=HostOption from Env Vars! Value Found=
2024-05-23 10:28:31.672 -04:00 [DBG] Trying to get option=AccessTokenOption from Env Vars! Value Found=
2024-05-23 10:28:31.675 -04:00 [DBG] Trying to get option=RefreshTokenOption from Env Vars! Value Found=
2024-05-23 10:28:31.682 -04:00 [VRB] Using standard windows docker uri=[npipe://./pipe/docker_engine]
2024-05-23 10:28:31.692 -04:00 [VRB] Beamo is initializing local manifest, but since no beamable folder exists, an empty manifest is being produced. 
2024-05-23 10:28:31.756 -04:00 [VRB] app context= {
  "IsDryRun": false,
  "UsePipeOutput": false,
  "ShowRawOutput": false,
  "ShowPrettyOutput": false,
  "DotnetPath": "dotnet",
  "Token": {
    "access_token": "",
    "refresh_token": "",
    "expires_at": "2024-05-23T10:31:31.6797189-04:00",
    "cid": "",
    "pid": ""
  },
  "Cid": "",
  "Pid": "",
  "Host": "https://api.beamable.com/",
  "RefreshToken": "",
  "WorkingDirectory": "C:\\Users\\cdhan\\Documents\\SAM",
  "LogLevel": 0
}
2024-05-23 10:28:31.757 -04:00 [VRB] running command=[InitCommand] with parsed arguments {"selectedEnvironment":null,"cid":"CID","pid":"PID","username":"EMAIL","password":"PASSWORD","saveToEnvironment":false,"saveToFile":true,"printToConsole":false,"customerScoped":false,"refreshToken":null}
2024-05-23 10:28:31.785 -04:00 [INF] signing into... 1338004997867618.DE_1650190063990785
2024-05-23 10:28:31.795 -04:00 [VRB] POST call: /basic/auth/token
2024-05-23 10:28:31.808 -04:00 [VRB] Calling: Method: POST, RequestUri: 'https://api.beamable.com/basic/auth/token', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
  Content-Type: application/json; charset=utf-8
}
2024-05-23 10:28:32.609 -04:00 [VRB] RESULT: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
  Date: Thu, 23 May 2024 14:28:32 GMT
  Connection: keep-alive
  Access-Control-Allow-Origin: *
  Server: akka-http/10.1.15
  Content-Type: application/json
  Content-Length: 155
}
2024-05-23 10:28:32.633 -04:00 [INF] Saving refresh token to connection-auth.json- do not add it to control version system. It should be used only locally.
2024-05-23 10:28:32.635 -04:00 [ERR] Login failed. Init aborted. Could not find a part of the path 'C:\Users\cdhan\Documents\SAM\temp\connection-auth.json'.
cli.CliException: invalid authorization
   at cli.InitCommand.GetResult(InitCommandArgs args) in /home/runner/work/BeamableProduct/BeamableProduct/cli/cli/Commands/InitCommand.cs:line 91
   at cli.AtomicCommand`2.Handle(TArgs args) in /home/runner/work/BeamableProduct/BeamableProduct/cli/cli/CommandContext.cs:line 115
   at cli.DependencyInjectionExtensions.<>c__DisplayClass3_0`3.<<AddSubCommandWithHandler>b__1>d.MoveNext() in /home/runner/work/BeamableProduct/BeamableProduct/cli/cli/DependencyInjectionExtensions.cs:line 78
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<AddMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()