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

BUG: Unable to create project when using litmusctl with latest (v3.0.0) version of Litmus #161

Closed
smitthakkar96 opened this issue Oct 16, 2023 · 2 comments

Comments

@smitthakkar96
Copy link

When trying to create a project using litmusctl we get following error:

Unmatched status code:{"error":"invalid_request","errorDescription":"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed"}

When checking the logs for auth-server I see this in the logs:

{"file":"/go/pkg/mod/github.com/sirupsen/[email protected]/logger.go:192","func":"github.com/sirupsen/logrus.(*Logger).Log","level":"warning","msg":"json: unknown field \"project_name\"","time":"2023-10-16T11:28:38Z"}

This is because the project_name param has been renamed here to projectName. Changing payload to use projectName fixes the problem. Here is an example curl request.

curl --location 'http://localhost:9003/create_project' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT TOKEN>' \
--data '{
    "projectName": "awesome-project"
}'
@smitthakkar96 smitthakkar96 changed the title Unable to create project when using litmusctl with latest (v3.0.0) version of Litmus BUG: Unable to create project when using litmusctl with latest (v3.0.0) version of Litmus Oct 16, 2023
@Nageshbansal
Copy link
Collaborator

Thanks @smitthakkar96 for pointing out this issue. This issue has already been addressed through PR #156 ( and i think it's going to be merged soon)

@SarthakJain26
Copy link
Collaborator

Fixed with PR: #156

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

3 participants