hashbang / hashbang.sh

Public facing website on hashbang.sh with embedded user creation script.
http://hashbang.sh
MIT License
141 stars 22 forks source link

Error creating an user directly in API #161

Closed slucasandrade closed 2 years ago

slucasandrade commented 2 years ago

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?

RyanSquared commented 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.

RyanSquared commented 2 years ago

Closing due to inactivity.