Fork me on GitHub
#clojars
<
2022-01-20
>
Teemu Kaukoranta13:01:44

Hi! I'm trying to deploy a new version of ring-logger to Clojars, but I'm getting a 401 error. Looking at history, some people got this same error when they tried using their personal password, not a deploy token, but I think I'm using a deploy token. This is my first time deploying to Clojars though, so I might be doing something wrong. Error in thread ๐Ÿงต

Teemu Kaukoranta13:01:51

Could not transfer artifact ring-logger:ring-logger:pom.asc:1.1.0 from/to clojars (): Failed to transfer file  with status code 401
Failed to deploy artifacts: Could not transfer artifact ring-logger:ring-logger:jar:1.1.0 from/to clojars (): Failed to transfer file  with status code 401

Teemu Kaukoranta13:01:33

It's possible that I don't have full access, it's not my library originally

Teemu Kaukoranta13:01:26

in my project.clj I currently have defproject ring-logger/ring-logger "1.1.0" , originally it was just ring-logger. The Leiningen tutorial mentioned that you should have the group name there

tcrawley15:01:43

Looking at the logs, it looks like your request is getting rejected because the password value you are sending isn't a deploy token. Can you double-check that?

Teemu Kaukoranta15:01:05

The token is something that starts with CLOJARS_, right?

tcrawley15:01:41

correct. and be sure to send your clojars username as the user

Teemu Kaukoranta16:01:15

that should be my email, right?

tcrawley16:01:27

no, it would be your clojars username. We don't support emails for deploying.

Teemu Kaukoranta16:01:30

ah, that is probably the issue then

Teemu Kaukoranta16:01:40

worked, thank you

Teemu Kaukoranta16:01:45

sorry for the dumb mistake ๐Ÿ™‚

tcrawley16:01:55

no problem, happy to help!