dullage / tahskr-server

A simple, open source, self-hosted todo manager.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mime type error (probably) when HTTP POST on creating new user

SmartPhoneLover opened this issue · comments

Hello, I'm receiving error when doing HTTP POST to create new user.
I think I set all the necessary fields and types of data required to perform a HTTP POST call.

Sending HTTP GET actions, such as the basic one (get release information) works as expected.
I tried to send the calls in local (HTTP) and via reverse proxy (HTTPS), and in bothy situations it fails.

The app that I used to perform the calls is Tasker, and Android app.

photo_2022-05-19_18-10-49
photo_2022-05-19_18-09-29

Hi @SmartPhoneLover, the username and password need to be passed as JSON in the body of the request. e.g. {"username": "usuario", "password": "pass"}. Judging from your screenshot they are currently being passed as query parameters.

Give this a go and let me know how you get on.

Now it worked as expected!
Yes, my two errors where, not passing the items as JSON: missing brackets {.} and doble quotes ".".
The other error was the field used.

Thank you very much!