nick_l
1
Sometime in the last 2 weeks the create service account API stopped working.
Specifically, using the curl
example with a valid project_id
as the project in the URL I see:
curl -X POST https://api.openai.com/v1/organization/projects/proj_dkredacted/service_accounts \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production App"
}'
{
"error": {
"message": "You must specify a project when creating a service account.",
"type": "invalid_request_error",
"param": null,
"code": "missing_project"
}
}
Note that this is the example code from the documentation failing.
2 Likes
nick_l
2
Also note that if you pass an invalid project_id
you get a different error message:
curl -X POST https://api.openai.com/v1/organization/projects/proj_dkINVALID_ID/service_accounts \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "ABC"
}'
{
"error": {
"message": "No project found with ID 'proj_dkINVALID_ID'.",
"type": "invalid_request_error",
"param": null,
"code": "object_not_found"
}
}
So it is seeing the project_id in the URL correctly…
zviwex
3
We are also having this issue, did you happen to fix it? Thanks!
Also had trouble with this , only when working with Default project.
have you managed to bypass this?