Closed slucasandrade closed 2 years ago
Sorry for such a late response. The host
field must be a valid foreign key on the hosts
table, which is the official servers that hashbang uses. Currently, we only have de1.hashbang.sh
set up for registration.
Closing due to inactivity.
Command:
curl -d '{"user":"myUser","key":"'"$(cat ~/.ssh/id_rsa.pub)"'","host":"someHost.hashbang.sh"}' -H 'Content-Type: application/json' https://hashbang.sh/user/create
Stdout:
{ "message": "insert or update on table \"passwd\" violates foreign key constraint \"passwd_host_fkey\"" }
Is it part of the challenge or there's some real error in your DB?