Back

Error deleting users

  • 0
  • Users
  • Cloud
-N I N J A-
20 Dec, 2023, 19:03

Yes in CMD and project is on cloud

TL;DR
Multiple users are experiencing an error when trying to delete users, even after trying on different networks. The support team suggests trying a different internet network and removing nested callbacks and async map. The user tried these suggestions, but the issue persists. The error message indicates a socket connection timeout. The user confirms they don't have any issues with their internet. The support team suspects an unstable internet connection or possible proxies causing the problem. They recommend checking the PC firewall and trying to curl the endpoint. The full error message is provided. The user mentions they are migrating data from Firebase and continue to face the same error when creating documents in a batch. After
-N I N J A-
20 Dec, 2023, 19:05

Also this error happens when i delete multiple docs from database

Drake
20 Dec, 2023, 19:05

where are you located? Maybe your internet connection is unstable?

-N I N J A-
20 Dec, 2023, 19:05

No issues with Internet, internet is 5G

-N I N J A-
20 Dec, 2023, 19:06

Airtel India

Drake
20 Dec, 2023, 19:06

internet could still be unstable 🧐

-N I N J A-
20 Dec, 2023, 19:08

After 5-6 tries I finally removed 9 users from auth

-N I N J A-
22 Dec, 2023, 15:31

Again getting same error: socket connection timeout, when creating docs in batch

-N I N J A-
22 Dec, 2023, 16:10

I am migrating data from firebase manually and getting this error

-N I N J A-
22 Dec, 2023, 16:17

full error:

TypeScript
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
Drake
22 Dec, 2023, 16:44

This still implies some sort of Internet problem... Do you have some proxy or something? Can you curl the endpoint?

-N I N J A-
22 Dec, 2023, 16:44

PC is connected to Android hotspot

Raja
22 Dec, 2023, 17:06

try using stable internet connection

-N I N J A-
22 Dec, 2023, 17:08

But no issue with internet it is very fast

Raja
22 Dec, 2023, 17:09

check your pc firewall

-N I N J A-
22 Dec, 2023, 17:11

No any issue checked all, some docs saved but some fails. Tried more than 100times: node index.js

Drake
22 Dec, 2023, 17:24

Docs? What's your code?

Drake
22 Dec, 2023, 17:24

Just because it's fast, doesn't mean it's stable

-N I N J A-
22 Dec, 2023, 17:28
TypeScript
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));
      });
Drake
22 Dec, 2023, 17:30

How many docs are there?

-N I N J A-
22 Dec, 2023, 17:31

139

Drake
22 Dec, 2023, 17:33

Can you try requesting this without the nested callbacks and async map?

-N I N J A-
22 Dec, 2023, 17:35

Tried that but no effect

Drake
22 Dec, 2023, 17:35

Please try a different internet network

-N I N J A-
22 Dec, 2023, 17:40

Tried on 4 networks but same

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more