289 lines
8.5 KiB
Plaintext
289 lines
8.5 KiB
Plaintext
alma@central:~/nextgen/NeahNew$ sudo npm start
|
||
|
||
> neah@0.1.0 start
|
||
> next start
|
||
|
||
▲ Next.js 15.3.1
|
||
- Local: http://localhost:3000
|
||
- Network: http://172.16.0.102:3000
|
||
|
||
✓ Starting...
|
||
✓ Ready in 1313ms
|
||
Connecting to Redis using environment variables
|
||
Microsoft OAuth Configuration: {
|
||
tenantId: 'cb4281a9-4a3e-4ff5-9a85-8425dd04e2b2',
|
||
authorizeUrl: 'https://login.microsoftonline.com/cb4281a9-4a3e-4ff5-9a85-8425dd04e2b2/oauth2/v2.0/authorize',
|
||
tokenUrl: 'https://login.microsoftonline.com/cb4281a9-4a3e-4ff5-9a85-8425dd04e2b2/oauth2/v2.0/token',
|
||
clientIdFirstChars: 'afaff...',
|
||
redirectUri: 'https://hub.slm-lab.net/ms'
|
||
}
|
||
Microsoft OAuth Configuration: {
|
||
tenantId: 'cb4281a9-4a3e-4ff5-9a85-8425dd04e2b2',
|
||
authorizeUrl: 'https://login.microsoftonline.com/cb4281a9-4a3e-4ff5-9a85-8425dd04e2b2/oauth2/v2.0/authorize',
|
||
tokenUrl: 'https://login.microsoftonline.com/cb4281a9-4a3e-4ff5-9a85-8425dd04e2b2/oauth2/v2.0/token',
|
||
clientIdFirstChars: 'afaff...',
|
||
redirectUri: 'https://hub.slm-lab.net/ms'
|
||
}
|
||
Successfully connected to Redis
|
||
Redis connection warmed up
|
||
⨯ SyntaxError: Unexpected identifier 'http'
|
||
at Object.Function [as get] (<anonymous>) {
|
||
digest: '2421336728'
|
||
}
|
||
Redis connection warmed up
|
||
=== SESSION CALLBACK START ===
|
||
Token error: undefined
|
||
Has accessToken: true
|
||
Has refreshToken: true
|
||
Token role: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Token sub: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Token email: a.tmiri@clm.foundation
|
||
Token name: Amine TMIRI
|
||
Token username: aminetmiri
|
||
User roles for session: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Creating session user object...
|
||
Setting session tokens...
|
||
✅ Session created successfully
|
||
Session user id: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Session user email: a.tmiri@clm.foundation
|
||
Session user roles: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
=== SESSION CALLBACK END ===
|
||
Using Rocket.Chat base URL: https://parole.slm-lab.net
|
||
Users list response: { success: true, count: 13, usersCount: 13 }
|
||
Found Rocket.Chat user: { username: 'aminetmiri', id: 'a9HwLtHagiRnTWeS5' }
|
||
Filtered user subscriptions: {
|
||
userId: 'a9HwLtHagiRnTWeS5',
|
||
username: 'aminetmiri',
|
||
totalSubscriptions: 1,
|
||
subscriptionDetails: [
|
||
{
|
||
type: 'd',
|
||
name: 'Rocket.Cat',
|
||
rid: 'a9HwLtHagiRnTWeS5rocket.cat',
|
||
alert: true,
|
||
unread: 3,
|
||
userMentions: 0
|
||
}
|
||
]
|
||
}
|
||
Messages for room Rocket.Cat: { success: true, count: 5, hasMessages: true }
|
||
Messages data cached for user 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
No valid session or email found
|
||
=== SESSION CALLBACK START ===
|
||
Token error: undefined
|
||
Has accessToken: true
|
||
Has refreshToken: true
|
||
Token role: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Token sub: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Token email: a.tmiri@clm.foundation
|
||
Token name: Amine TMIRI
|
||
Token username: aminetmiri
|
||
User roles for session: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Creating session user object...
|
||
Setting session tokens...
|
||
✅ Session created successfully
|
||
Session user id: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Session user email: a.tmiri@clm.foundation
|
||
Session user roles: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
=== SESSION CALLBACK END ===
|
||
Using cached messages data for user 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
=== SESSION CALLBACK START ===
|
||
Token error: undefined
|
||
Has accessToken: true
|
||
Has refreshToken: true
|
||
Token role: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Token sub: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Token email: a.tmiri@clm.foundation
|
||
Token name: Amine TMIRI
|
||
Token username: aminetmiri
|
||
User roles for session: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Creating session user object...
|
||
Setting session tokens...
|
||
✅ Session created successfully
|
||
Session user id: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Session user email: a.tmiri@clm.foundation
|
||
Session user roles: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
=== SESSION CALLBACK END ===
|
||
[NOTIFICATION_SERVICE] Creating new notification service instance
|
||
[NOTIFICATION_SERVICE] Initializing notification service
|
||
[LEANTIME_ADAPTER] Initialized with API URL and token
|
||
[NOTIFICATION_SERVICE] Registered notification adapter: leantime
|
||
[NOTIFICATION_SERVICE] Registered adapters: [ 'leantime' ]
|
||
[NOTIFICATION_SERVICE] getNotificationCount called for user 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
[NOTIFICATION_SERVICE] Fetching notification counts for user 203cbc91-61ab-47a2-95d2-b5e1159327d7 from 1 adapters
|
||
[NOTIFICATION_SERVICE] Available adapters for count: leantime
|
||
[NOTIFICATION_SERVICE] Checking if adapter leantime is configured for count
|
||
[NOTIFICATION_SERVICE] Adapter leantime is configured for count: true
|
||
[NOTIFICATION_SERVICE] Fetching notification count from leantime for user 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
[LEANTIME_ADAPTER] getNotificationCount called for userId: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
[LEANTIME_ADAPTER] getNotifications called for userId: 203cbc91-61ab-47a2-95d2-b5e1159327d7, page: 1, limit: 100
|
||
=== SESSION CALLBACK START ===
|
||
Token error: undefined
|
||
Has accessToken: true
|
||
Has refreshToken: true
|
||
Token role: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Token sub: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Token email: a.tmiri@clm.foundation
|
||
Token name: Amine TMIRI
|
||
Token username: aminetmiri
|
||
User roles for session: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Creating session user object...
|
||
Setting session tokens...
|
||
✅ Session created successfully
|
||
Session user id: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Session user email: a.tmiri@clm.foundation
|
||
Session user roles: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
=== SESSION CALLBACK END ===
|
||
[LEANTIME_ADAPTER] Retrieved email from session: a.tmiri@clm.foundation
|
||
[LEANTIME_ADAPTER] Retrieved Leantime userId for email a.tmiri@clm.foundation: 2
|
||
[LEANTIME_ADAPTER] Sending request to get all notifications
|
||
[LEANTIME_ADAPTER] Request body: {"jsonrpc":"2.0","method":"leantime.rpc.Notifications.Notifications.getAllNotifications","params":{"userId":2,"showNewOnly":0,"limitStart":0,"limitEnd":100,"filterOptions":[]},"id":1}
|
||
[LEANTIME_ADAPTER] Response status: 200
|
||
[LEANTIME_ADAPTER] Raw response (truncated): {"jsonrpc":"2.0","result":[{"id":2732,"0":2732,"userId":2,"1":2,"read":0,"2":0,"type":"projectUpdate","3":"projectUpdate","module":"tickets","4":"tickets","moduleId":225,"5":225,"datetime":"2025-12-24...
|
||
[LEANTIME_ADAPTER] Parsed response data: {
|
||
hasResult: true,
|
||
resultIsArray: true,
|
||
resultLength: 100,
|
||
error: undefined
|
||
}
|
||
[LEANTIME_ADAPTER] Transformed notifications count: 100
|
||
[LEANTIME_ADAPTER] Notification counts: { total: 100, unread: 66 }
|
||
[NOTIFICATION_SERVICE] Got count from leantime: {
|
||
total: 100,
|
||
unread: 66,
|
||
sources: { leantime: { total: 100, unread: 66 } }
|
||
}
|
||
[NOTIFICATION_SERVICE] Adding counts from leantime: total=100, unread=66
|
||
[NOTIFICATION_SERVICE] Aggregated counts for user 203cbc91-61ab-47a2-95d2-b5e1159327d7: {
|
||
total: 100,
|
||
unread: 66,
|
||
sources: { leantime: { total: 100, unread: 66 } }
|
||
}
|
||
[NOTIFICATION_SERVICE] Cached notification counts for user 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
[IMAP POOL] Size: 0, Active: 0, Connecting: 0, Max: 20
|
||
=== SESSION CALLBACK START ===
|
||
Token error: undefined
|
||
Has accessToken: true
|
||
Has refreshToken: true
|
||
Token role: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Token sub: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Token email: a.tmiri@clm.foundation
|
||
Token name: Amine TMIRI
|
||
Token username: aminetmiri
|
||
User roles for session: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
Creating session user object...
|
||
Setting session tokens...
|
||
✅ Session created successfully
|
||
Session user id: 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
Session user email: a.tmiri@clm.foundation
|
||
Session user roles: [
|
||
'expression',
|
||
'entrepreneurship',
|
||
'admin',
|
||
'dataintelligence',
|
||
'mediation',
|
||
'mentors'
|
||
]
|
||
=== SESSION CALLBACK END ===
|
||
Using cached messages data for user 203cbc91-61ab-47a2-95d2-b5e1159327d7
|
||
[IMAP POOL] Size: 0, Active: 0, Connecting: 0, Max: 20
|
||
|