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
- SMS OTP not delivered to Australian (+61...
Hey team! I'm having an issue with SMS OTP delivery to Australian phone numbers in my Appwrite Cloud project. What's happening: account.createPhoneToken() co...
- OAuth provider credentials reverting [CR...
Hi team, I’m experiencing repeated OAuth configuration resets in my Appwrite project. ## Issue 1 – Google OAuth credentials reverting * I configure my own Goog...
- updateSession isn't working for google o...
I'm building an app using react native with expo. An image of my code is attached. The code is a useEffect that i have in a context that wraps the root layout ...