forked from Salman1205/MailAssist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_output.txt
More file actions
152 lines (148 loc) · 9.12 KB
/
test_output.txt
File metadata and controls
152 lines (148 loc) · 9.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[dotenv@17.2.4] injecting env (15) from .env.local -- tip: 👥 sync secrets across teammates & machines: https://dotenvx.com/ops
[Supabase] Initializing with Service Role Key
Using ticket 622a6437-16fe-4337-b643-0649bffa27a1 bound to user support@carifex.com
Ticket updated_at set to: 2025-01-01T12:00:00+00:00
--- TEST 1: Email from Agent (owner) ---
node.exe : [Session]
Validation error: Error:
`cookies` was called
outside a request scope.
Read more: https://nextjs.o
rg/docs/messages/next-dynam
ic-api-wrong-context
At C:\Program
Files\nodejs\npx.ps1:29
char:3
+ & $NODE_EXE
$NPX_CLI_JS $args
+ ~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
+ CategoryInfo
: NotSpecified: ([Se
ssion] Valid...i-wrong
-context:String) [], R
emoteException
+ FullyQualifiedErrorI
d : NativeCommandError
at throwForMissingReque
stStore (C:\Users\Salman\Do
wnloads\Email\node_modules\
next\src\server\app-render\
work-unit-async-storage.ext
ernal.ts:343:9)
at cookies (C:\Users\Sa
lman\Downloads\Email\node_m
odules\next\src\server\requ
est\cookies.ts:141:30)
at
validateBusinessSession (C:
\Users\Salman\Downloads\Ema
il\lib\session.ts:227:31)
at getCurrentUserEmail
(C:\Users\Salman\Downloads\
Email\lib\storage.ts:23:32)
at
ensureTicketForEmail (C:\Us
ers\Salman\Downloads\Email\
lib\tickets.ts:370:56)
at testRobustReopen (C:
\Users\Salman\Downloads\Ema
il\scripts\test-robust-reop
en.ts:59:11)
at process.processTicks
AndRejections (node:interna
l/process/task_queues:105:5
)
[Ticket] Processing customer email for ticket 622a6437-16fe-4337-b643-0649bffa27a1 (Status: closed)
[Ticket] Ignoring old customer email test-agent-msg-1 for ticket 622a6437-16fe-4337-b643-0649bffa27a1 (already have newer reply) {
emailDate: '2025-01-01T13:00:00.000Z',
lastCustomerReply: '2026-01-12T06:40:05+00:00'
}
PASS: Ticket remained CLOSED after agent reply (even with isFromAgent=false)
--- TEST 2: Customer Email with EQUAL timestamp ---
[Session] Validation
error: Error: `cookies`
was called outside a
request scope. Read more: h
ttps://nextjs.org/docs/mess
ages/next-dynamic-api-wrong
-context
at throwForMissingReque
stStore (C:\Users\Salman\Do
wnloads\Email\node_modules\
next\src\server\app-render\
work-unit-async-storage.ext
ernal.ts:343:9)
at cookies (C:\Users\Sa
lman\Downloads\Email\node_m
odules\next\src\server\requ
est\cookies.ts:141:30)
at
validateBusinessSession (C:
\Users\Salman\Downloads\Ema
il\lib\session.ts:227:31)
at getCurrentUserEmail
(C:\Users\Salman\Downloads\
Email\lib\storage.ts:23:32)
at
ensureTicketForEmail (C:\Us
ers\Salman\Downloads\Email\
lib\tickets.ts:370:56)
at testRobustReopen (C:
\Users\Salman\Downloads\Ema
il\scripts\test-robust-reop
en.ts:80:11)
at process.processTicks
AndRejections (node:interna
l/process/task_queues:105:5
)
[Ticket] Processing customer email for ticket 622a6437-16fe-4337-b643-0649bffa27a1 (Status: closed)
[Ticket] Ignoring old customer email test-cust-msg-equal for ticket 622a6437-16fe-4337-b643-0649bffa27a1 (already have newer reply) {
emailDate: '2025-01-01T12:00:00.000Z',
lastCustomerReply: '2026-01-12T06:40:05+00:00'
}
PASS: Ticket remained CLOSED after customer email with EQUAL timestamp
--- TEST 3: Customer Email NEW ---
[Session] Validation
error: Error: `cookies`
was called outside a
request scope. Read more: h
ttps://nextjs.org/docs/mess
ages/next-dynamic-api-wrong
-context
at throwForMissingReque
stStore (C:\Users\Salman\Do
wnloads\Email\node_modules\
next\src\server\app-render\
work-unit-async-storage.ext
ernal.ts:343:9)
at cookies (C:\Users\Sa
lman\Downloads\Email\node_m
odules\next\src\server\requ
est\cookies.ts:141:30)
at
validateBusinessSession (C:
\Users\Salman\Downloads\Ema
il\lib\session.ts:227:31)
at getCurrentUserEmail
(C:\Users\Salman\Downloads\
Email\lib\storage.ts:23:32)
at
ensureTicketForEmail (C:\Us
ers\Salman\Downloads\Email\
lib\tickets.ts:370:56)
at testRobustReopen (C:
\Users\Salman\Downloads\Ema
il\scripts\test-robust-reop
en.ts:100:11)
at process.processTicks
AndRejections (node:interna
l/process/task_queues:105:5
)
[Ticket] Processing customer email for ticket 622a6437-16fe-4337-b643-0649bffa27a1 (Status: closed)
[Ticket] Ignoring old customer email test-cust-msg-new for ticket 622a6437-16fe-4337-b643-0649bffa27a1 (already have newer reply) {
emailDate: '2025-01-01T13:00:00.000Z',
lastCustomerReply: '2026-01-12T06:40:05+00:00'
}
FAIL: Ticket status is
closed