Skip to content

Fix: Handle missing apikey parameter to prevent 500 server crash#4

Merged
pradeeban merged 1 commit intoControlCore-Project:mainfrom
GREENRAT-K405:fix/server-crash-no-api
Feb 11, 2026
Merged

Fix: Handle missing apikey parameter to prevent 500 server crash#4
pradeeban merged 1 commit intoControlCore-Project:mainfrom
GREENRAT-K405:fix/server-crash-no-api

Conversation

@GREENRAT-K405
Copy link
Copy Markdown
Contributor

Added validation checks for apikey in the following endpoints:
/init, /ctl, /pm, /cleanup

the server will now returns 400 Bad Request with the message "Missing API key" if the parameter is not provided.
This fixes #3 .

BEFORE:

image

AFTER:

image

@GREENRAT-K405
Copy link
Copy Markdown
Contributor Author

@pradeeban @Rahuljagwani, please review the changes, also please checkout the PR regarding adding gemini PR review bot in the other repos, if you need help or have doubt setting up the api key or working with github actions, just tag mw I will make myself available immediately.

@pradeeban pradeeban merged commit 07a97a9 into ControlCore-Project:main Feb 11, 2026
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

Successfully merging this pull request may close these issues.

Server crash on missing parameter

2 participants