
Check a Zenodo token works before uploading anything
Source:R/archive-zenodo-upload.R
dot-zenodo_check_token.RdZenodo does not answer a bad token with 401: it returns HTTP 500, which is indistinguishable from a genuine server fault and so gets retried with backoff. Left unchecked, a mistyped or wrong-server token therefore costs minutes of retries per folder before failing. One cheap authenticated request up front turns that into an immediate, accurate message.