after a problem with the migration i decided star over, but im finding this problem in the 1.5.4 version...
TypeScript
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.9,es;q=0.8' \
-H 'content-type: application/json' \
-H 'cookie: __stripe_mid=84df1ae6-e56d-4c82-81cc-9174838cbf5378066d; a_session_console_legacy=eyJpZCI6IjY2MGUyMDc3NTMxMDg1ZmJhNjczIiwic2VjcmV0IjoiZmY5MTRkYjJlMjI2N2MzYjI4MjhlZDI1NGIzZDUzYTYyZGVkMGJkMzRjZjA0ZjRmMWMwY2M3NmY0MzYxYzZhM2ZmZjE3NjQyNDc4NGQ5NDgyMGUxMGI2NjdiODUyYjUxYjFhMmI2MmRmMGZlNmVkNjhjYTliYzNhNGI1M2UzNzI4MmE1YmFlNjM1NmVhNzU4NDJjNzgyYTQ1NGMzZmRlMzI5ZmU0OWM5MDFhNjIxZmEyNWY0NzM5NjVkZjJkYjBmNzAzNWNiY2NlOWM0ZDhkYTRkZDFhYTZjNzhlNDNiZThjMzllZjk5MjM4ODJjMGRjMTE2ODAwYzhkNGJlODUwNSJ9' \
-H 'origin: https://url' \
-H 'referer: https://url/register' \
-H 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
-H 'x-appwrite-project: console' \
-H 'x-appwrite-response-format: 1.5.0' \
-H 'x-fallback-cookies;' \
-H 'x-sdk-language: web' \
-H 'x-sdk-name: Console' \
-H 'x-sdk-platform: console' \
-H 'x-sdk-version: 0.6.1' \
--data-raw '{"userId":"661d9dd8003876ef72e4","email":"bla@bla.com","password":"pass","name":"user"}'```
{"message":"Server Error","code":500,"type":"general_unknown","version":"1.5.4"}
TL;DR
Developers are encountering a 500 error on registration due to deprecated DateTime constructor and a countable array error in the Appwrite container logs. The issue persists in version 1.5.4 even after restarting. The error message received when attempting registration is "Server Error."and in the appwrite container logs...
TypeScript
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
[Error] Timestamp: 2024-04-15T21:36:25+00:00
[Error] Method: POST
[Error] URL: /v1/account
[Error] Type: TypeError
[Error] Message: count(): Argument #1 ($value) must be of type Countable|array, null given
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 292```
Recommended threads
- Can't run functions from console in appw...
Hello, I have an appwrite 1.9.0 self hosted, functions run correctly with client SDK or event when using the function domain *.function.mydomain, for testing pu...
- Compatibility issue with Kakao OpenID Co...
**Context:** I am attempting to integrate **Kakao Login** (one of the largest social login providers in South Korea) into my Flutter application using Appwrite'...
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...