codecov / feedback

A place to discuss feedback about the pull request and web product experience.
35 stars 6 forks source link

[Self hosted] Getting a 405 not allowed error on upload #524

Open MarcoMuellner opened 2 days ago

MarcoMuellner commented 2 days ago

Describe the bug During our upload from the workflow we get a 405 method not allowed error. Here is the response (with verbose enabled)

info - 2024-09-24 14:24:06,671 -- Found 2 coverage files to report
info - 2024-09-24 14:24:06,671 -- > /home/runner/work/ae-platform-shell/ae-platform-shell/coverage/clover.xml
info - 2024-09-24 14:24:06,671 -- > /home/runner/work/ae-platform-shell/ae-platform-shell/coverage/coverage-final.json
debug - 2024-09-24 14:24:06,678 -- Selected uploader to use: <class 'codecov_cli.services.upload.upload_sender.UploadSender'>
debug - 2024-09-24 14:24:06,725 -- Sending upload request to Codecov
info - 2024-09-24 14:24:07,086 -- Process Upload complete
debug - 2024-09-24 14:24:07,087 -- Upload result --- {"result": "RequestResult(error=RequestError(code='HTTP Error 405', params={}, description='<html>\\r\\n<head><title>405 Not Allowed</title></head>\\r\\n<body>\\r\\n<center><h1>405 Not Allowed</h1></center>\\r\\n<hr><center>nginx/1.22.1</center>\\r\\n</body>\\r\\n</html>\\r\\n'), warnings=[], status_code=405, text='<html>\\r\\n<head><title>405 Not Allowed</title></head>\\r\\n<body>\\r\\n<center><h1>405 Not Allowed</h1></center>\\r\\n<hr><center>nginx/1.22.1</center>\\r\\n</body>\\r\\n</html>\\r\\n')"}
error - 2024-09-24 14:24:07,087 -- Upload failed: <html>
error - 2024-09-24 14:24:07,087 -- <head><title>405 Not Allowed</title></head>
error - 2024-09-24 14:24:07,087 -- <body>
error - 2024-09-24 14:24:07,087 -- <center><h1>405 Not Allowed</h1></center>
error - 2024-09-24 14:24:07,087 -- <hr><center>nginx/1.22.1</center>
error - 2024-09-24 14:24:07,087 -- </body>
error - 2024-09-24 14:24:07,087 -- </html>

I would like to understand where this error is coming from and why this is - and how to fix it on our end.

Environment (please complete the following information): Github workflows

To Reproduce

Expected behavior I expect the upload to work

Screenshots

Additional context The same upload works on the SaaS version, token was generated.

drazisil-codecov commented 2 days ago

This is coming from either the gateway pod, if you are using it, or your nginx proxy in front of Codecov.