ittybittyapps/appstoreconnect-cli

Bug: Running `asc bundle-ids list`

raven opened this issue ยท 9 comments

raven commented

๐ŸŒŽ Environment

  • OS: macOS
  • Version/Release: 0.1.0

๐Ÿ’ฌ Description

Running asc bundle-ids list fails after some significant amount of delay.

asc users succeeds speedily ~3seconds

๐Ÿฆถ Reproduction Steps

asc bundle-ids list

๐Ÿค” Expected Results

A list of bundle ids

๐Ÿ˜ฒ Actual Results

After ~3mins20sec of non-responsiveness, macOS killed it with bus error

$ time asc bundle-ids list
[2]    21383 bus error  asc bundle-ids list
asc bundle-ids list  10.57s user 0.59s system 5% cpu 3:19.87 total

image

I can see whilst I am running asc that it is utilising networking:

image

๐ŸŒณ Logs

Where might I find those?

raven commented

Tell me what you need to help diagnose ๐Ÿ‘

orj commented

@raven Can you run it in Xcode and see where it is getting caught up. I have a feeling it is awaiting on results and not getting anything or getting stuck in a loop.

orj commented

@raven also please try other commands to see if you get any similar issues.

What role did you give your API Key?

I also think it is most likely an issue with some output getting swallowed in a publisher chain and waiting on await.

The default timeout is .distantFuture but maybe it shouldn't be?

func await(timeout: DispatchTime = .distantFuture) throws -> Output {

raven commented

What role did you give your API Key

developer

also please try other commands to see if you get any similar issues.

  • โœ… asc users
  • โœ… asc certificates list
  • โŒ asc devices list
  • โœ… โŒ asc profiles list ( wow that was some output that flew past )
    • Exited with 1 status code
    • This failed differently than the original issue. The output streamed past, and then ended with:
    Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "included", intValue: nil), _JSONKey(stringValue: "Index 366", intValue: 366), CodingKeys(stringValue: "attributes", intValue: nil), CodingKeys(stringValue: "certificateType", intValue: nil)], debugDescription: "Cannot initialize CertificateType from invalid String value DEVELOPMENT", underlyingError: nil)).
    
  • โœ… asc testflight apps list
  • โœ… asc testflight builds list took a very long time to complete (3164 builds)
raven commented

Would be great if there was some kind of messaging to stderr "This can take a long time..." or some other cli ux that indicated activity (--verbose, ncurses etc).

orj commented

@raven Thanks for giving this a whirl Pete. Much appreciated.

As AvdLee/appstoreconnect-swift-sdk#111 was merged this issue should be fixed. See #207

raven commented

Will there be a release to accomodate this fix?