similar issue Firebase Messaging: app/network-timeout (Error while making request: timeout of 10000ms exceeded) but i didnt solve with anything.
here is my configuration
const options = {
priority: "high",
timeToLive: 60 * 60 * 24
};
// i have an option like that
const headLine = 'hello' // under 30 characters
const message_notification = {
notification: {
title: 'title not long sometimes under 15 - 20 characters',
body: headLine,
url: req.body.url,
// other: 'other data',
// tag: req.body.tag,
}
};
// i use sendToTopic
package.json
"firebase-admin": "^11.0.0",
what should i do ? what best practice to sent a notification ? should i make it queue ? or just make dead lock ( infinity loop ) until success on sent notification ?
sometimes work sometimes timeout like that .
i have already deploy (production) on VPS Server.
ā ~ uname -a
Linux xxxx 5.4.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64 x86_64 x86_64 GNU/Linux
ā ~ cat /proc/meminfo
MemTotal: 3145728 kB
MemFree: 1884388 kB
MemAvailable: 2210944 kB
Cached: 305012 kB
Buffers: 0 kB
Active: 737292 kB
Inactive: 423988 kB
Active(anon): 550516 kB
Inactive(anon): 310112 kB
Active(file): 186776 kB
Inactive(file): 113876 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 4 kB
Writeback: 0 kB
AnonPages: 860628 kB
Shmem: 4360 kB
Slab: 68948 kB
SReclaimable: 25904 kB
SUnreclaim: 43044 kB