Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Request for Host a remote evaluation challenge #87

Open
Espere-1119-Song opened this issue Mar 23, 2024 · 5 comments
Open

Bad Request for Host a remote evaluation challenge #87

Espere-1119-Song opened this issue Mar 23, 2024 · 5 comments

Comments

@Espere-1119-Song
Copy link

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?

@Liuziyu77
Copy link

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?

@Espere-1119-Song
Copy link
Author

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

@Liuziyu77
Copy link

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

@Espere-1119-Song
Copy link
Author

Did you install environments with docker-compose?

@Liuziyu77
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants