gwapes
gwapes
Explore posts from servers
HHono
Created by Tiebienotjuh on 11/8/2024 in #help
Strange error
You may want to use something like <{ Bindings: …, Variables: { user: { id: number }}> Then c.set('user', { id: 1 }) Then whenever you want to get it c.get('user') Lmk if there’s anything wrong, syntax may be wrong since I’m on phone
3 replies
CDCloudflare Developers
Created by Md.Sadiq on 10/26/2024 in #workers-help
I'm Building a worker application with Hono how can I change the PORT
Workers are serverless, request goes in and a response comes out. You can’t change the port since you can’t run a server on workers
3 replies
HHono
Created by Greenman999 on 10/23/2024 in #help
How to prevent Server Error if no req body?
try {
await somePromise()
} catch (e) {
//handle some error
}
try {
await somePromise()
} catch (e) {
//handle some error
}
5 replies
HHono
Created by Greenman999 on 10/23/2024 in #help
How to prevent Server Error if no req body?
Use try catch and then return if it throws.
5 replies