Fix Unhandled Rejections not showing error lol

This commit is contained in:
Christopher Cookman 2025-09-15 05:40:59 -06:00
parent 192d1431c1
commit 1efff58746
4 changed files with 134 additions and 1493 deletions

View file

@ -127,7 +127,8 @@ client.on("messageCreate", async (message) => {
// Global error handling for unhandled promise rejections and uncaught exceptions
process.on('unhandledRejection', (reason, promise) => {
log.error('Unhandled Rejection at:', promise, 'reason:', reason);
log.error(`Unhandled Rejection: ${reason}`);
// Application specific logging, throwing an error, or other logic here
});

1491
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,7 +17,6 @@
"express-session": "^1.18.1",
"mariadb": "^3.4.0",
"passport": "^0.7.0",
"passport-discord": "^0.1.4",
"sqlite3": "^5.1.7"
"passport-discord": "^0.1.4"
}
}

130
parcelexampledata.json Normal file
View file

@ -0,0 +1,130 @@
{
"status": "200",
"message": "OK",
"data": {
"userData": {
"connectedUsername": "[chris@chris-pc ~]$"
},
"hubData": {
"id": "66ac5e3454f3077e8a05010c",
"name": "KCA Development Group",
"description": {
"shortDescription": "Discover and purchase virtual assets of KCA Development Group",
"longDescription": "KCA Development Group is one of hundreds of groups that sell their virtual assets with Parcel."
},
"config": {
"allowGiftPurchases": true
},
"statistics": {
"totalSales": 194
},
"regulatory": {
"termsOfService": "This Hub does not have any Terms of Service yet. If you are the Hub owner, you can update this under settings."
}
},
"productsData": {
"bestsellerProduct": {
"productID": "veprjlha11hnmqt0rdwtz2ga5k2l",
"name": "Honeywell Vista Device Pack",
"description": "This pack contains:\n- Honeywell Vista 6160 Keypad\n- Honeywell Wave2 Siren\n- Honeywell Motion Detector\n\nProduct is compatible with the KCA XP-99 Alarm System",
"devproduct_id": "1900210811",
"decalID": "18839039903",
"stock": false,
"onsale": true,
"category": "Xp-99 addon",
"tags": [],
"rating": {
"currentScore": 5,
"maxScore": 5,
"amountOfReviews": 1
}
},
"allProducts": [
{
"productID": "kmeqa9z8dfpercoip1bsd5533ajg",
"name": "KCA VC-15 Non Scripted Phone",
"description": "KCA VC-15 is a dual stack IP Phone with 24 lines and 3 way video confrencing. It has a 7 inch capacitive touch display and features RealVoice Technology.",
"devproduct_id": "1895140989",
"decalID": "9690630240",
"stock": false,
"onsale": true,
"category": null,
"tags": [],
"rating": {
"currentScore": 0,
"maxScore": 5,
"amountOfReviews": 0
},
"playerData": {
"robloxId": "25226480",
"ownsProduct": false
}
},
{
"productID": "0gd4587lpu96do9spjk0pjhw8xfy",
"name": "Color Changing Square",
"description": "A magic color changing square. Thanks for supporting us!",
"devproduct_id": "1895177340",
"decalID": "9690630240",
"stock": 0,
"onsale": true,
"category": null,
"tags": [],
"rating": {
"currentScore": 0,
"maxScore": 5,
"amountOfReviews": 0
},
"playerData": {
"robloxId": "25226480",
"ownsProduct": true
}
},
{
"productID": "veprjlha11hnmqt0rdwtz2ga5k2l",
"name": "Honeywell Vista Device Pack",
"description": "This pack contains:\n- Honeywell Vista 6160 Keypad\n- Honeywell Wave2 Siren\n- Honeywell Motion Detector\n\nProduct is compatible with the KCA XP-99 Alarm System",
"devproduct_id": "1900210811",
"decalID": "18839039903",
"stock": false,
"onsale": true,
"category": "Xp-99 addon",
"tags": [],
"rating": {
"currentScore": 5,
"maxScore": 5,
"amountOfReviews": 1
},
"playerData": {
"robloxId": "25226480",
"ownsProduct": true
}
},
{
"productID": "knhur4p2il2glw45v9mwa54ums9i",
"name": "Honeywell 6160 Keypad Pack",
"description": "Honeywell 6160 Pack for KCA XP-99 Systems.\nCompatible with V1.3 and later.\nIncludes:\nNewer 6160\nOlder 6160\n6160V\n6160CR\n\nModelled by: kansas_theNKP, Gaberial Releases",
"devproduct_id": "1911110705",
"decalID": "18987517225",
"stock": false,
"onsale": true,
"category": "Xp-99 addon",
"tags": [],
"rating": {
"currentScore": 5,
"maxScore": 5,
"amountOfReviews": 1
},
"playerData": {
"robloxId": "25226480",
"ownsProduct": true
}
}
]
},
"robloxGame": {
"musicId": null
},
"requestedAt": "2025-09-14T16:18:39.454Z"
}
}