The api is made with python and flask
Go on, what are its parameter requirements, are there any data submission examples?
@app.route('/api/register', methods=['POST'])
def register_user():
data = request.json
email = data.get('email')
password = data.get('password')
username = data.get('username')
Do It Result: "{"email":"test@gmail.com","password":"test password","username":"s4il"}"
---
Are you sure?
A screenshot would help to avoid misunderstandings...
I would remove that JsonObjectEncode block
Please show us a screenshot next time
Taifun
I posted a similar POST sample a day ago at
for linear cut analyses
I tried but still same error:
127.0.0.1 - - [07/Feb/2025 21:36:17] "POST /api/register HTTP/1.1" 415 -
we are are playing darts in a dark room, with a black dartboard...
Isn't that localhost?
Is your app talking to itself?
It allways says that in logs, idk why, but that isn't teh problem since it works fine
Maybe you need to specify content type in some headers?
I don't undestand what you mean by data submission examples
Maybe! How do you do that?
Ok, this looks better...
The difference was the double quotes at start and end
Taifun
Look in the last procedure:
I can't see it, it's blurry
The companion says error 1110: the specified request headers are not valid: element 1 is not a list
That worked! The regster endpoint worked and created an account but for some reason it says eror 201, no idea what that is but this is what the logs say:
/var/task/google/cloud/firestore_v1/base_collection.py:303: UserWarning: Detected filter using positional arguments. Prefer using the 'filter' keyword argument instead. return query.where(field_path, op_string, value)
10:49:03.863
127.0.0.1 - - [08/Feb/2025 09:49:03] "POST /api/register HTTP/1.1" 201 -