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

API: create user fails #145

Open
thomas-mc-work opened this issue Dec 17, 2024 · 0 comments
Open

API: create user fails #145

thomas-mc-work opened this issue Dec 17, 2024 · 0 comments

Comments

@thomas-mc-work
Copy link

Given the following request:

curl --request PUT \
  --url https://wanderer.mydomain.org/api/v1/user \
  --header 'Content-Type: application/json' \
  --cookie pb_auth=%257B%2522token%2522%253A%… \
  --data '{
  "username": "lenny",
    "password": "s3cr3t",
    "passwordConfirm": "s3cr3t",
    "email": "lenny@moes.org"
}'

I always get a 401 response:

{
	"url": "",
	"status": 401,
	"response": {
		"messgage": "Forbidden"
	},
	"isAbort": false,
	"originalError": {
		"status": 401,
		"response": {
			"messgage": "Forbidden"
		}
	},
	"name": "ClientResponseError 401"
}

Other API endpoints are working (e.g. GET …/user/<id>). The log files aren't telling anything.

What could be the cause?

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

1 participant