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

Error 500 when trying to create Ground truth job with python SDK #8193

Closed
2 tasks done
thmegy opened this issue Jul 18, 2024 · 2 comments
Closed
2 tasks done

Error 500 when trying to create Ground truth job with python SDK #8193

thmegy opened this issue Jul 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@thmegy
Copy link

thmegy commented Jul 18, 2024

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

I'm trying to create a ground truth job for a task using the python SDK.
I'm using the following piece of code :

client = make_client('url', credentials=('username', 'password'))
client.organization_slug = 'my_organisation

client.jobs.api.create(
{
    'assignee':2,
    'type':'ground_truth',
    'task_id':16,
    'frame_selection_method':'random_uniform',
    'quantity':100
}
)

I get the following error:

ServiceException: Status Code: 500
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Content-Length': '145', 'Content-Type': 'text/html; charset=utf-8', 'Cross-Origin-Opener-Policy': 'same-origin', 'Date': 'Thu, 18 Jul 2024 08:08:47 GMT', 'Referrer-Policy': 'same-origin, strict-origin-when-cross-origin', 'Server': 'nginx', 'Vary': 'Origin', 'X-Content-Type-Options': 'nosniff, nosniff', 'X-Frame-Options': 'DENY', 'X-Request-Id': '1d8afdb8-0de5-4058-8dc2-475a7f520ab7'})
HTTP response body: 
<!doctype html>
<html lang="en">
<head>
  <title>Server Error (500)</title>
</head>
<body>
  <h1>Server Error (500)</h1><p></p>
</body>
</html>

What am I doing wrong ?

Expected Behavior

No response

Possible Solution

No response

Context

No response

Environment

Server version: 2.17.0

Core version: 15.1.0

Canvas version: 2.20.6

UI version: 1.64.0
@thmegy thmegy added the bug Something isn't working label Jul 18, 2024
@zhiltsov-max
Copy link
Contributor

Hi, thank you for reporting the problem. The endpoint doesn't have a quantity field in the request, you can see it here, please try to use the frame_count field instead. However, I agree, that the server should not fail with the 500 error code in such cases.

@thmegy
Copy link
Author

thmegy commented Jul 23, 2024

Thanks a lot !

@thmegy thmegy closed this as completed Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants