clojars

Teemu Kaukoranta 2022-01-20T13:02:44.003700Z

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 Kaukoranta 2022-01-20T13:02:51.003800Z

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 Kaukoranta 2022-01-20T13:03:33.004Z

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

Teemu Kaukoranta 2022-01-20T13:09:26.004200Z

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

2022-01-20T15:24:43.004400Z

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 Kaukoranta 2022-01-20T15:58:05.004600Z

The token is something that starts with CLOJARS_, right?

2022-01-20T15:59:41.004800Z

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

Teemu Kaukoranta 2022-01-20T16:01:15.005Z

that should be my email, right?

2022-01-20T16:03:27.005200Z

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

Teemu Kaukoranta 2022-01-20T16:05:30.005400Z

ah, that is probably the issue then

Teemu Kaukoranta 2022-01-20T16:11:40.005600Z

worked, thank you

Teemu Kaukoranta 2022-01-20T16:11:45.005800Z

sorry for the dumb mistake ๐Ÿ™‚

2022-01-20T16:11:55.006Z

no problem, happy to help!