Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when sending JSON response #6

Open
talaikis opened this issue Mar 21, 2020 · 0 comments
Open

Crashes when sending JSON response #6

talaikis opened this issue Mar 21, 2020 · 0 comments

Comments

@talaikis
Copy link

Works fine on turbo-http (with stringify and Buffer.from).

Error:

PowerShell 6 (x64)[14844]: c:\ws\src\node_buffer.cc:193: Assertion `val->IsArrayBufferView()' failed.
 1: 00007FF6894E124F napi_wrap+124431
 2: 00007FF689482A06 v8::base::CPU::has_sse+34502
 3: 00007FF689482D23 v8::base::CPU::has_sse+35299
 4: 00007FF68949EA88 node::Buffer::Data+88
 5: 00007FF6894A670F napi_get_buffer_info+79
 6: 00007FFDDA842088
 7: 00007FF6894BB453 node::Stop+69667
 8: 00007FF689C3C4E0 v8::internal::Builtins::builtin_handle+325536
 9: 00007FF689C3BA27 v8::internal::Builtins::builtin_handle+322791
10: 00007FF689C3BD68 v8::internal::Builtins::builtin_handle+323624
11: 00007FF689C3BB6E v8::internal::Builtins::builtin_handle+323118
12: 00007FF68A0B414D v8::internal::SetupIsolateDelegate::SetupHeap+568205
13: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
14: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
15: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
16: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
17: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
18: 00007FF68A02CF8C v8::internal::SetupIsolateDelegate::SetupHeap+14796
19: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
20: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
21: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
22: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
23: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
24: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
25: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
26: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
27: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
28: 00007FF68A031191 v8::internal::SetupIsolateDelegate::SetupHeap+31697
29: 00007FF68A030D7C v8::internal::SetupIsolateDelegate::SetupHeap+30652
30: 00007FF689B962D3 v8::internal::Execution::CallWasm+1395
31: 00007FF689B95C56 v8::internal::Execution::Call+182
32: 00007FF689C66ECB v8::Function::Call+603
33: 00007FF6894FD395 node::CallbackScope::~CallbackScope+1429
34: 00007FF6894FD847 node::MakeCallback+199
35: 00007FF6894A6A28 napi_make_callback+296
36: 00007FFDDA84125F
37: 00007FF689514CBB uv_tty_set_vterm_state+8299
38: 00007FF689529B1C uv_loop_init+844
39: 00007FF689529E54 uv_run+244
40: 00007FF68944BC12 v8::internal::Scope::locals+30946
41: 00007FF6894A9A73 node::Start+275
42: 00007FF68936667C RC4_options+339324
43: 00007FF68A167138 v8::internal::SetupIsolateDelegate::SetupHeap+1301368
44: 00007FFDEFC27BD4 BaseThreadInitThunk+20
45: 00007FFDF19CCED1 RtlUserThreadStart+33
PS C:\Users\Dxenu\Desktop\quote-api\api> node index.js
PowerShell 6 (x64)[12048]: c:\ws\src\node_buffer.cc:193: Assertion `val->IsArrayBufferView()' failed.
 1: 00007FF6894E124F napi_wrap+124431
 2: 00007FF689482A06 v8::base::CPU::has_sse+34502
 3: 00007FF689482D23 v8::base::CPU::has_sse+35299
 4: 00007FF68949EA88 node::Buffer::Data+88
 5: 00007FF6894A670F napi_get_buffer_info+79
 6: 00007FFDDA842088
 7: 00007FF6894BB453 node::Stop+69667
 8: 00007FF689C3C4E0 v8::internal::Builtins::builtin_handle+325536
 9: 00007FF689C3BA27 v8::internal::Builtins::builtin_handle+322791
10: 00007FF689C3BD68 v8::internal::Builtins::builtin_handle+323624
11: 00007FF689C3BB6E v8::internal::Builtins::builtin_handle+323118
12: 00007FF68A0B414D v8::internal::SetupIsolateDelegate::SetupHeap+568205
13: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
14: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
15: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
16: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
17: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
18: 00007FF68A02CF8C v8::internal::SetupIsolateDelegate::SetupHeap+14796
19: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
20: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
21: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
22: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
23: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
24: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
25: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
26: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
27: 00007FF68A033BDC v8::internal::SetupIsolateDelegate::SetupHeap+42524
28: 00007FF68A031191 v8::internal::SetupIsolateDelegate::SetupHeap+31697
29: 00007FF68A030D7C v8::internal::SetupIsolateDelegate::SetupHeap+30652
30: 00007FF689B962D3 v8::internal::Execution::CallWasm+1395
31: 00007FF689B95C56 v8::internal::Execution::Call+182
32: 00007FF689C66ECB v8::Function::Call+603
33: 00007FF6894FD395 node::CallbackScope::~CallbackScope+1429
34: 00007FF6894FD847 node::MakeCallback+199
35: 00007FF6894A6A28 napi_make_callback+296
36: 00007FFDDA84125F
37: 00007FF689514CBB uv_tty_set_vterm_state+8299
38: 00007FF689529B1C uv_loop_init+844
39: 00007FF689529E54 uv_run+244
40: 00007FF68944BC12 v8::internal::Scope::locals+30946
41: 00007FF6894A9A73 node::Start+275
42: 00007FF68936667C RC4_options+339324
43: 00007FF68A167138 v8::internal::SetupIsolateDelegate::SetupHeap+1301368
44: 00007FFDEFC27BD4 BaseThreadInitThunk+20
45: 00007FFDF19CCED1 RtlUserThreadStart+33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant