Yes in CMD and project is on cloud
Also this error happens when i delete multiple docs from database
where are you located? Maybe your internet connection is unstable?
No issues with Internet, internet is 5G
Airtel India
internet could still be unstable π§
After 5-6 tries I finally removed 9 users from auth
Again getting same error: socket connection timeout, when creating docs in batch
I am migrating data from firebase manually and getting this error
full error:
AppwriteException [Error]: Socket connection timeout
at Client.call (C:\Projects\appwrite\node_modules\node-appwrite\lib\client.js:180:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.createDocument (C:\Projects\appwrite\node_modules\node-appwrite\lib\services\databases.js:1691:16)
at async C:\Projects\appwrite\a.js:2781:9 {
code: undefined,
type: undefined,
response: undefined
} Failed undefined
This still implies some sort of Internet problem... Do you have some proxy or something? Can you curl the endpoint?
PC is connected to Android hotspot
try using stable internet connection
But no issue with internet it is very fast
check your pc firewall
No any issue checked all, some docs saved but some fails. Tried more than 100times: node index.js
Docs? What's your code?
Just because it's fast, doesn't mean it's stable
db.collection("contents")
.get()
.then((data) => {
data.docs.map(async (item) => {
const items = item.data();
//console.log("items.date_time", items.category);
const timestamp = items.date_time.seconds; // Unix timestamp in seconds
const date = new Date(timestamp * 1000); // Convert seconds to milliseconds
const isoString = date.toISOString();
const documentData = {
text: items.content,
type: items.type,
likes: items.likes,
comments: items.comments,
date_time: isoString,
user:items.userId,
};
await databases
.createDocument(
"64d487585f702b2b6ad6",
"64f9a5185029d4fc2147",
item.id,
documentData
)
.then(() => {
//console.log("created", items.id)
})
.catch((err) => console.log("errror:>" + err, item.id));
});
How many docs are there?
139
Can you try requesting this without the nested callbacks and async map?
Tried that but no effect
Please try a different internet network
Tried on 4 networks but same
Recommended threads
- All function deployments fail (node 18-2...
Error: bash: /usr/local/server/helpers/build-cache.sh: No such file or directory Sidecar error: Build archive was not created at /mnt/code/code.tar.gz Scope: ...
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...
- Help: Domain krtrim.tech Blocked on Fast...
Hi, I'm trying to add my domain krtrim.tech (and subdomain) in Appwrite, but I'm getting this error: Failed to add domain to Fastly: {"msg":"Bad request","deta...