u007
u007
Explore posts from servers
NNuxt
Created by marz on 7/21/2024 in #❓・help
HMR in docker not working when using reverse proxy
did you managed to find solution? for my case, in connecting to ws on eqmx, it keep disconnecting every 2to 3s
9 replies
NNuxt
Created by u007 on 7/15/2024 in #❓・help
readFileSync" is not exported by
doing server and client side rendering on the same framework is extremely unpredictable. for some weird reason, all my #nuxt server ts file starts to render on client side causing import error for fs, url and path. anyone experiencing the same issue? ive to do in function import with await to fix this
2 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
im not sure, but ive implemented dnsmasq to fallback dns issue incase if it fails
6 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
i suspect this has todo with atlas connection limit
6 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
again happening: again happening: return this.prisma.user.findUnique( vhnest_1 | Raw query failed. Code: unknown. Message: `Server selection timeout: None of the available servers suitable for criteria ReadPreference(Primary). Topology: { Type: ReplicaSetNoPrimary, Servers: [ { Address: :27017, Type: RsSecondary, Average RTT: 3.281146ms, Last Update Time: DateTime(OffsetDateTime { local_datetime: PrimitiveDateTime { date: Date { year: 2024, ordinal: 152 }, time: Time { hour: 5, minute: 58, second: 44, nanosecond: 237000000 } }, offset: UtcOffset { hours: 0, minutes: 0, seconds: 0 } }), Max Wire Version: 21, Min Wire Version: 0, Replica Set Name: atlas-lxzpd2-shard-0, Replica Set Version: 44, Tags: {"nodeType": "ELECTABLE", "diskState": "READY", "workloadType": "OPERATIONAL", "provider": "AWS", "region": "AP_SOUTHEAST_1", "availabilityZone": "apse1-az1"} }, { Address: :27017, Type: RsSecondary, Average RTT: 4.461106ms, Last Update Time: DateTime(OffsetDateTime { local_datetime: PrimitiveDateTime { date: Date { year: 2024, ordinal: 152 }, time: Time { hour: 5, minute: 58, second: 44, nanosecond: 346000000 } }, offset: UtcOffset { hours: 0, minutes: 0, seconds: 0 } }), Max Wire Version: 21, Min Wire Version: 0, Replica Set Name: ***-0, Replica Set Version: 44, Tags: {"availabilityZone": "apse1-az2", "workloadType": "OPERATIONAL", "diskState": "READY", "nodeType": "ELECTABLE", "provider": "AWS", "region": "AP_SOUTHEAST_1"} }...
6 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
ive added 0.0.0.0 to the allowed ip
6 replies
PPrisma
Created by u007 on 5/30/2024 in #help-and-questions
mongodb connection randomly unable to connect
[Nest] 7 - 05/28/2024, 10:34:58 AM ERROR [ExceptionHandler] Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/
6 replies
PPrisma
Created by u007 on 5/8/2024 in #help-and-questions
where inside include
sorry my own bug
2 replies
NNuxt
Created by u007 on 6/4/2023 in #❓・help
how to set duration limit for function on vercel?
nvm found it, nuxt.config.ts
nitro: {
vercel: {
functions: {
maxDuration: 60,
}
}
},
nitro: {
vercel: {
functions: {
maxDuration: 60,
}
}
},
2 replies
NNuxt
Created by u007 on 4/24/2023 in #❓・help
self is not defined
didnt realise ive another file importing upload client function that is not client side vue component
3 replies
NNuxt
Created by u007 on 4/24/2023 in #❓・help
self is not defined
[nuxt] [request error] [unhandled] [500] self is not defined 12:44:47 AM
at Object.<anonymous> (./node_modules/.pnpm/[email protected]/node_modules/browser-image-resizer/dist/index.js:1:242)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29) 12:43:32 AM
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
[nuxt] [request error] [unhandled] [500] self is not defined 12:44:47 AM
at Object.<anonymous> (./node_modules/.pnpm/[email protected]/node_modules/browser-image-resizer/dist/index.js:1:242)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29) 12:43:32 AM
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
3 replies