Sometimes when running server serve --register-project the project didn't get registered and server gets stuck.
Solution
The register project thread is sending the post request to the server probably while the server is still doing some initialization, and can't process the request properly.
Changing the order fixes the issue, but not the most robust solution.
Recommendation
Server's register endpoint should be improved to avoid this issue.
Problem
Sometimes when running
server serve --register-project
the project didn't get registered and server gets stuck.Solution
The register project thread is sending the post request to the server probably while the server is still doing some initialization, and can't process the request properly. Changing the order fixes the issue, but not the most robust solution.
Recommendation
Server's
register
endpoint should be improved to avoid this issue.