EvalAI-Starters icon indicating copy to clipboard operation
EvalAI-Starters copied to clipboard

Bad Request for Host a remote evaluation challenge

Open Espere-1119-Song opened this issue 11 months ago • 5 comments

I am holding a remote evaluation challenge with EvalAI.

I can succcessfully download the submissions from the website.

However, when I need to update the leaderboard with update_finished, I meet error in update_submission_data. I found that when goes through it goes wrong in function make_request and response.raise_for_status(). Specifically:

response = requests.request(
                method=method, url=url, headers=headers, data=data
            )

It reports that requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://eval.ai/api/jobs/challenge/2253/update_submission/ and the content in the website is {"detail":"Authentication credentials were not provided."}

How can I fix it?

Espere-1119-Song avatar Mar 23 '24 13:03 Espere-1119-Song

I am holding a remote evaluation challenge with EvalAI.

I can succcessfully download the submissions from the website.

However, when I need to update the leaderboard with update_finished, I meet error in update_submission_data. I found that when goes through it goes wrong in function make_request and response.raise_for_status(). Specifically:

response = requests.request(
                method=method, url=url, headers=headers, data=data
            )

It reports that requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://eval.ai/api/jobs/challenge/2253/update_submission/ and the content in the website is {"detail":"Authentication credentials were not provided."}

How can I fix it?

same issue,do you have any solution?

Liuziyu77 avatar Mar 25 '24 05:03 Liuziyu77

Sorry, I didn't fix it. It seems I need to docker-compose up --build first, but I failed.

Espere-1119-Song avatar Mar 25 '24 05:03 Espere-1119-Song

Sorry, I didn't fix it. It seems I need to docker-compose up --build first, but I failed.

Hey, I found a solution which might be useful. I changed my output format as following, and the problem is fixed. https://github.com/Cloud-CV/EvalAI-Starters/blob/master/remote_challenge_evaluation/evaluate.py#L52

Liuziyu77 avatar Mar 25 '24 09:03 Liuziyu77

Did you install environments with docker-compose?

Espere-1119-Song avatar Mar 25 '24 09:03 Espere-1119-Song

Did you install environments with docker-compose?

No. I run ./remote_challenge_evaluation/main.py locally in my conda env to hold a remote evaluation.

Liuziyu77 avatar Mar 25 '24 09:03 Liuziyu77