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

[bug] POST /api/v1/accounts return empty response #3612

Open
tiaod opened this issue Dec 9, 2024 · 0 comments
Open

[bug] POST /api/v1/accounts return empty response #3612

tiaod opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tiaod
Copy link

tiaod commented Dec 9, 2024

Describe the bug with a clear and concise description of what the bug is.

I tried to make a POST request to /api/v1/accounts, and the returned response code is 200, but the body is empty.
image

curl --request POST \
  --url http://localhost:8080/api/v1/accounts \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer ZDNLZME4NTGTYWQ3MC0ZZJJMLWFINMETNZDLMGYYYTBJMTK3' \
  --header 'User-Agent: test' \
  --header 'content-type: application/json' \
  --data '{
	"reason": "testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest",
	"username": "testtest",
	"email": "test@example.com",
  	"password": "testtesttesttest",
  	"agreement": true,
  	"locale":"zh-cn"
}'

What's your GoToSocial Version?

0.17.3+git-6f4cb2f

GoToSocial Arch

amd64 Docker

What happened?

No response

What you expected to happen?

Return an OAuth2 access token for the newly-created account.
image

How to reproduce it?

No response

Anything else we need to know?

No response

@tiaod tiaod added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant