falconindy / auracle

A flexible command line client for Arch Linux's User Repository
MIT License
238 stars 26 forks source link

Handle '503 - Service Unavailable' #64

Closed crabvk closed 4 years ago

crabvk commented 4 years ago

Got

terminate called after throwing an instance of 'nlohmann::detail::parse_error' what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<' Aborted (core dumped)

from

auracle sync

due to aur.archlinux.org on maintenance.

AUR on maintenance

solsticedhiver commented 4 years ago

+1 something better and less cryptic will be appreciated

it's the same for auracle sarch ... or auracle download ....

falconindy commented 4 years ago

Sure, this is all the same code path. The code is meant to handle this properly, but because the AUR responds with HTML in addition to the 503, auracle ends up trying to parse the HTML as JSON.

Easily fixed...