## 事象
[[🦉OwlMixin]]のpublishをしようとすると以下のエラー。
```console
$ poetry publish
Publishing owlmixin (6.1.1) to PyPI
- Uploading owlmixin-6.1.1-py3-none-any.whl 0%
- Uploading owlmixin-6.1.1-py3-none-any.whl 27%
- Uploading owlmixin-6.1.1-py3-none-any.whl 100%
HTTP Error 403: Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information. | b'<html>\n <head>\n <title>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.\n \n <body>\n <h1>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.\n Access was denied to this resource.<br/><br/>\nInvalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.\n\n\n \n'
```
以下のコマンドでトークン設定済。`--local`をつけても変わらず。
```console
poetry config pypi-token.pypi <token>
```
環境変数を設定してもダメそう。
```console
$env:POETRY_PYPI_TOKEN_PYPI="<token>"
```
トークンがそもそもダメ?
- [[Poetry]]のバージョンは1.5.1
## 原因
### トークンが間違ってた
[[PyPI]]のアカウント画面に表示されるトークンは部分的なものであるが、それを正しいトークンだと思って使用していたため。
なお、『コピー』ボタンは動作しなかったので作り直した。(作り直すと1度表示されるため)
### [[Poetry]]が古かった?
[[Poetry自身を更新]]してv1.6.1にしたらなぜか治った。。