Generic package curl command throws 502 error of Gitlab does not respond

Good evening fellow Gitlab’ers, hope you’re all doing well. I ran into an issue using the example GitLab Generic Packages Repository | GitLab for generic package publishing using my .gitlab-ci.yml file. Here’s what I have so far:


  - pushGeneric

  stage: pushGeneric
    - 'curl -v --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file file.txt "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/myApp/0.0.1/file.txt"'

When I create a new tag, the pipeline starts well. I can see the TLS handshaking succeeding, next comes the PUT command PUT /api/v4/projects/76/packages/generic/myApp/0.0.1/file.txt. This is where I see the timer counting up to 5:00:00 mins and it states it completed successfully with a HTTP 2 502 line. When I check my generic package folder, it is empty.

What might be causing this error? Thanks in advance for any tips or help.

Finally got it to work with the last comment curl command example Upload a package file not working (#360922) · Issues · / GitLab · GitLab