Unable to load/write config: invalid character ',' after object key

33 views
Skip to first unread message

Gary Rogers

unread,
Jan 22, 2025, 10:35:01 AM1/22/25
to pat-users

Hello. new user here. I'm trying to configure PAT on a Macbook M2. When I enter pat http in terminal I get the above response. Below is a clip from the config.json file. I've edited no further than what you see here. Is this an errant or missing , ? Any help appreciated.


{

  "mycall": "KB3CAN",

  "secure_login_password": "KB3CAN",

  "auxiliary_addresses": [],

  "locator": "FM19pg",

  "service_codes": [

    "PUBLIC"

  ],

  "http_addr": "localhost:8080",

  "motd": [   

    "Open source Winlink client - getpat.io"

  ],

  "connect_aliases": {

    "telnet": "telnet://{mycall}:CMST...@cms.winlink.org:8772/wl2k"

  }, 

  "listen": ["telnet", "ardop", "varahf", "varafm"],

  "hamlib_rigs": {"ft991", "ftdx10"},

Dominic ›OE7DRT‹

unread,
Jan 23, 2025, 12:24:33 AM1/23/25
to pat-...@googlegroups.com
Gary Rogers <cgaryro...@gmail.com> wrote:

>
>
>Hello. new user here. I'm trying to configure PAT on a Macbook M2. When I
>enter pat http in terminal I get the above response. Below is a clip from
>the config.json file. I've edited no further than what you see here. Is
>this an errant or missing , ? Any help appreciated.

Hard to tell because you omitted closing brackets but check if your last
entry within brackets has no "," at the end.

see as an example this:

#v+
"agwpe": {
"addr": "localhost:8000",
"radio_port": 0
},
#v-

See, the last key has no trailing comma.

Also, do you really want to "listen" on all these modes?

The listen key is for your own station and your station will listen on
INCOMING traffic on these modes.

HTH, 73

-dominic

>{
>
> "mycall": "KB3CAN",
>
> "secure_login_password": "KB3CAN",
>
> "auxiliary_addresses": [],
>
> "locator": "FM19pg",
>
> "service_codes": [
>
> "PUBLIC"
>
> ],
>
> "http_addr": "localhost:8080",
>
> "motd": [
>
> "Open source Winlink client - getpat.io"
>
> ],
>
> "connect_aliases": {
>
> "telnet": "telnet://{mycall}:CMST...@cms.winlink.org:8772/wl2k"
>
> },
>
> "listen": ["telnet", "ardop", "varahf", "varafm"],
>
> "hamlib_rigs": {"ft991", "ftdx10"},

--
Life is really simple, but we insist on making it complicated.
- Confucius

Gary Rogers

unread,
Jan 27, 2025, 1:20:07 PM1/27/25
to pat-users
Just to close this out and following the blog post of WG1V was able to get the configuration straight and was able to send and receive messages via ardop.
Reply all
Reply to author
Forward
0 new messages