Archy on Mac M3max Ventura OS

I am moving to a new M3 max based MacBook Pro. I've tried installing archy and am getting the following message when running 'archy version':

pkg/prelude/bootstrap.js:1872
throw error;
^

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at new Env (/snapshot/architect-archy/src/utilities/env.js)
at Object. (/snapshot/architect-archy/src/utilities/env.js)
at Module._compile (pkg/prelude/bootstrap.js:1926:22)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
at require (node:internal/modules/cjs/helpers:102:18)

The same setup works on my old MacBook Pro M1. Any suggestions to resolve?
Thank you in advance!

Hi @cbhenderson,

Does it happen if you redownload the latest version from https://sdk-cdn.mypurecloud.com/archy/latest/archy-macos.zip and unzip?

Thanks,
Jon

Hi Jon, thanks for your reply. I got the same result. Download -> unzip -> try to run, get the macos "can't verify the publisher" message -> settings "allow anyway" -> rerun -> the the dialog -> select open -> few second delay ->
./archy version
./archy: line 11: 9658 Killed: 9 "./archyBin/archy-macos-2.25.0" "$@"

./archy version
pkg/prelude/bootstrap.js:1872
throw error;
^

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at new Env (/snapshot/architect-archy/src/utilities/env.js)
at Object. (/snapshot/architect-archy/src/utilities/env.js)
at Module._compile (pkg/prelude/bootstrap.js:1926:22)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
at require (node:internal/modules/cjs/helpers:102:18)

Node.js v18.5.0

The very strange thing is the exact same setup runs on a MacBook Pro M1 Apple silicon machine. Please let me know if I can provide any other information

@cbhenderson thanks for trying again. I'm also on an M1 macbook pro on Ventura and not seeing this issue either.

I dont think this will change anything, but just curious anyways. Could you try running these commands in your terminal to download Archy, unzip, and then run Archy?

curl https://sdk-cdn.mypurecloud.com/archy/latest/archy-macos.zip --output archy-macos.zip
unzip archy-macos.zip
./archy version

I did notice when downloading via curl I wasnt prompted with the "cant verify publisher" message and maybe somehow thats messing it up? (highly doubt it though)

Another thing I'm curious if you could try is to download an older release manually and try to run it. The previous version to 2.25.0 is found here - https://sdk-cdn.mypurecloud.com/archy/2.24.1/archy-macos.zip

Let me know! I'll keep looking into this in the meantime.

Thanks,
Jon

Thank you, Jon!
I'll try your suggestions shortly. My M1 MacBook runs archy without any issues. My new MacBook Pro is an M3 Max processor (just got it a few weeks ago) and it is the one that is spitting out the odd errors (even though it is setup exactly like the M1).
I'll report back on your suggestions shortly.
Thanks again

Ran your suggestions. I did notice the following:

Screenshot 2023-12-18 at 1.42.54 PM

Note that it says "Chrome downloaded this file at 12:36" but I ran curl about 1:30 - just seemed odd to me.
Anyway the exact same responses came from this test. I'm wondering if the M3 Max has some kind of security settings that are causing the error?

--craig

@cbhenderson thanks for trying that out. I've come up with another thing to try. In your terminal, could you

run rm ~/.archy_config

I have a suspicion that the config file for Archy has somehow not been created correctly. After deleting it, then try running archy version again.

Thanks,
Jon

SUCCESS!! Thank you so very much for all your time. Can the .archy_config file be removed at anytime and it will be recreated at the next archy execution?

Have a great holiday season!!
--craig

@cbhenderson Awesome! Glad to have finally figured it out. And yep, if it gets deleted it will be recreated without any of the settings configured (i.e. location / clientId / clientSecret). So you can just run the setup command to repopulate those configuration values.

Have a great holiday season yourself!

- Jon

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.