Pypi Repository Package 400 bad request when pushing a new python lib

We encountered an error when pushing a lib to gitlab package registry.

I’ve tried to reproduce the error on my local machine and here is the result.

➜  katapack twine upload --verbose --repository gitlab dist/*

INFO     Using configuration from /home/b3ns44d/.pypirc                                                                                                                                       
Uploading distributions to
INFO     dist/mypypipackage-0.0.1-py3-none-any.whl (1.1 KB)                                                                                                                                   
INFO     dist/mypypipackage-0.0.1.tar.gz (0.9 KB)                                                                                                                                             
INFO     username set from config file                                                                                                                                                        
INFO     password set from config file                                                                                                                                                        
INFO     username: <username>                                                                                                                                                         
INFO     password: <hidden>                                                                                                                                                                   
Uploading mypypipackage-0.0.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 kB • 00:00 • ?
INFO     Response from                                                                                    
        400 Bad Request                                                                                                                                                                      
INFO     {"message":" is not a recognized provider"}                                                                                                                                          
ERROR    HTTPError: 400 Bad Request from                                                                   
        Bad Request    

I’ve followed this guide here and started from a new repo: PyPI packages in the Package Registry | GitLab

so I don’t think that this is an issue related to the name or version

Gitlab version: 15.4.1

Thanks in advance.