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 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)
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
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?
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?
@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.