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

upgrade unable to parse response json #493

Open
1 task done
brokosz opened this issue May 24, 2023 · 12 comments
Open
1 task done

upgrade unable to parse response json #493

brokosz opened this issue May 24, 2023 · 12 comments
Labels

Comments

@brokosz
Copy link

brokosz commented May 24, 2023

Your Environment

  • mas version: 1.8.6
  • macOS version: macOS 13.4 (22F66)

mas Install Method

  • brew install mas (homebrew-core)

Describe the Bug

Getting Error: Unable to parse response JSON checking for updates

To Reproduce

mas upgrade will throw the error every time

Expected Behavior

upgrades should work?

Actual Behavior

❯ mas upgrade
Error: Unable to parse response JSON
@brokosz
Copy link
Author

brokosz commented May 1, 2024

I'm still having this issue. I assume MAS is no longer supported? Are there any viable alternatives?

@Goralive
Copy link

I got the same issue, but after mas outdated I was able to mas upgrade I hope it's helps

@rgoldberg
Copy link
Contributor

Is this still occurring?

If so, please provide the outputs of both:

$ mas outdated
$ mas list

@Goralive
Copy link

Goralive commented Sep 5, 2024

For me, it's not reproducible anymore 😫 . But it was reproduced on the first install. After I used mas outdated I was able to do mas upgrade without any errors.
I will try to repro on another Mac I have.

Here is the list of app

1274495053  Microsoft To Do       (2.128)
1278508951  Trello                (2.15.0)
497799835   Xcode                 (15.4)
948660805   AusweisApp            (2.2.0)
1485052491  Dropzone 4            (4.80.19)
1595464182  MonitorControlLite    (1.0.0)
1120214373  Battery Health 2      (1.94)
1452453066  Hidden Bar            (1.8)
462058435   Microsoft Excel       (16.88)
585829637   Todoist               (9.7.0)
985367838   Microsoft Outlook     (16.88.1)
462054704   Microsoft Word        (16.88)
1291898086  Toggl Track           (10.3.1)
937984704   Amphetamine           (5.3.2)
1352778147  Bitwarden             (2024.8.1)
462062816   Microsoft PowerPoint  (16.88.1)

@rgoldberg
Copy link
Contributor

@Goralive Thanks. After some other issues are fixed, we should try to provide better error output from mas.

For unparsable JSON errors, we should output the unparsable JSON after the error message so that we can investigate more easily. If the JSON is very long, maybe the JSON should be output only if a new --debug option is supplied; we can add a note about --debug in the error message.

@Goralive
Copy link

Goralive commented Sep 5, 2024

yeah, it would be really great 💯 to have in the output this option.

So I have installed it on other MacBooks, but all the stuff is up to date... So for me can't reproduce. Maybe @brokosz have a steps

@brokosz
Copy link
Author

brokosz commented Sep 5, 2024

I gave up on mas due to the errors, but let me try again today. I'll post output here as well when I get into the office.

@rgoldberg
Copy link
Contributor

@brokosz Thanks

@brokosz
Copy link
Author

brokosz commented Sep 5, 2024

yay - success!

[brokosz@ ~]$ mas version
1.8.6
[brokosz@ ~]$ mas outdated
Warning: Identifier 1502527999 not found in store. Was expected to identify Jiffy.
Warning: Identifier 445189367 not found in store. Was expected to identify PopClip.
Warning: Identifier 688211836 not found in store. Was expected to identify EasyRes.
Warning: Identifier 1514817810 not found in store. Was expected to identify Poolsuite FM.
545519333 Prime Video (10.34 -> 10.39.2)
6449440582 Sparrow (2.5 -> 12)
302584613 Kindle (7.18 -> 7.18.1)
1444636541 Photomator (3.3.23 -> 3.3.24)
6447647340 S3 (2024.32 -> 2024.33)
1589391989 Mapper (3.0.1 -> 3.0.2)
[brokosz@ ~]$ mas upgrade
Upgrading 6 outdated applications:
Prime Video (10.34), Sparrow (2.5), Kindle (7.18), Mapper (3.0.1), Photomator (3.3.23), S3 (2024.32)
==> Downloading Amazon Prime Video
==> Installed Amazon Prime Video
==> Downloading Sparrow Weather
==> Installed Sparrow Weather
==> Installed Amazon Kindle
==> Downloading Mapper for Safari
==> Installed Mapper for Safari
==> Downloading Photomator – Photo Editor
==> Installed Photomator – Photo Editor
==> Downloading S3: Storage & Files
==> Installed S3: Storage & Files

@rgoldberg
Copy link
Contributor

Looks like the immediate reaction should be to output the unparsable JSON. Once that's in place, if anyone experiences the same problem, then we'll be able to investigate better. But there won't be much else that can be done until someone else encounters the same error.

@kbd
Copy link

kbd commented Sep 12, 2024

I've been getting the same error and also can't help diagnose because mas doesn't output the json. Imo it shouldn't be behind a debug flag because it's an error.

Fwiw, it seems to be related to the Amazon Kindle app.

mas "Amazon Kindle", id: 302584613

The problem started when I added Kindle to my Brewfile, and commenting out that line in my Brewfile fixed it. Plus I see someone above has Kindle installed as well.

The app is doing something weird where it's always thinking it needs updating, so it may be related to that.

@rgoldberg
Copy link
Contributor

rgoldberg commented Sep 12, 2024

@kbd I installed 'Amazon Kindle' 302584613 from the Mac App Store GUI.

I do not get any errors from mas update when it's installed.

I haven't used Brewfiles directly, so maybe the issue is with installing using a Brewfile or using mas install.

I'm running macOS 12.7.6 on Intel. I tried a few different versions of mas, none of which output any errors.

@rgoldberg rgoldberg changed the title 🐛 [BUG] unable to parse response json doing updates 🐛 [BUG] mas upgrade unable to parse response json Sep 13, 2024
@rgoldberg rgoldberg changed the title 🐛 [BUG] mas upgrade unable to parse response json upgrade unable to parse response json Sep 14, 2024
@rgoldberg rgoldberg changed the title upgrade unable to parse response json upgrade unable to parse response json Sep 14, 2024
kbd added a commit to kbd/setup that referenced this issue Sep 14, 2024
Its seemingly buggy update behavior seems to be bugging out 'mas':
mas-cli/mas#493 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants