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

c:\ws\src\node_http_parser.cc:567: Assertion `args[3]->IsInt32()' failed. #38485

Closed
shirshak55 opened this issue Apr 30, 2021 · 3 comments
Closed

Comments

@shirshak55
Copy link

shirshak55 commented Apr 30, 2021

  • Version: 16.0.0
  • Platform: Windows 10
  • Subsystem: Powershell
async function main() {
    let prisma = new PrismaClient()
    await prisma.products.create({
        data: {
            id: 1923065578,
            period: "day",
        },
    })

Prisma Model

datasource db {
  provider = "sqlite"
  url      = "file:../cache/shopee_database.db"
}

generator client {
  provider = "prisma-client-js"
}

model Products {
  id     BigInt @id
  period String
}

Error:

Assertion `args[3]->IsInt32()' failed.
 1: 00007FF75C6486BF v8::internal::Isolate::ArchiveSpacePerThread+4719
 2: 00007FF75C5DB246 v8::internal::wasm::WasmCode::safepoint_table_offset+67414
 3: 00007FF75C5DB5C1 v8::internal::wasm::WasmCode::safepoint_table_offset+68305
 4: 00007FF75C5C0543 v8::base::CPU::has_sse+14915
 5: 00007FF75CF03969 v8::internal::Builtins::builtin_handle+318073
 6: 00007FF75CF02F01 v8::internal::Builtins::builtin_handle+315409
 7: 00007FF75CF031F1 v8::internal::Builtins::builtin_handle+316161
 8: 00007FF75CF03033 v8::internal::Builtins::builtin_handle+315715
 9: 00007FF75CFD98B1 v8::internal::SetupIsolateDelegate::SetupHeap+455217
10: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
11: 00007FF75CF70DFF v8::internal::SetupIsolateDelegate::SetupHeap+26495
12: 00007FF75D0653DA v8::internal::SetupIsolateDelegate::SetupHeap+1027418
13: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
14: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
15: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
16: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
17: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
18: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
19: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
20: 00007FF75D01FA48 v8::internal::SetupIsolateDelegate::SetupHeap+742344
21: 00007FF75CF70FCC v8::internal::SetupIsolateDelegate::SetupHeap+26956
22: 00007FF75D0653DA v8::internal::SetupIsolateDelegate::SetupHeap+1027418
23: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
24: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
25: 00007FF75CF9FCB3 v8::internal::SetupIsolateDelegate::SetupHeap+218675
26: 00007FF75D0213A5 v8::internal::SetupIsolateDelegate::SetupHeap+748837
27: 00007FF75CF93513 v8::internal::SetupIsolateDelegate::SetupHeap+167571
28: 00007FF75CF71B0B v8::internal::SetupIsolateDelegate::SetupHeap+29835
29: 00007FF75CE2A0E3 v8::internal::Execution::CallWasm+1891
30: 00007FF75CE2A1EB v8::internal::Execution::CallWasm+2155
31: 00007FF75CE2AC5A v8::internal::Execution::TryCall+378
32: 00007FF75CE07945 v8::internal::MicrotaskQueue::RunMicrotasks+501
33: 00007FF75CE076A0 v8::internal::MicrotaskQueue::PerformCheckpoint+32
34: 00007FF75CF03969 v8::internal::Builtins::builtin_handle+318073
35: 00007FF75CF02F01 v8::internal::Builtins::builtin_handle+315409
36: 00007FF75CF031F1 v8::internal::Builtins::builtin_handle+316161
37: 00007FF75CF03033 v8::internal::Builtins::builtin_handle+315715
38: 00007FF75CFD98B1 v8::internal::SetupIsolateDelegate::SetupHeap+455217
39: 00007FF75CF739B9 v8::internal::SetupIsolateDelegate::SetupHeap+37689
40: 00007FF75CF71C0F v8::internal::SetupIsolateDelegate::SetupHeap+30095
41: 00007FF75CF7180B v8::internal::SetupIsolateDelegate::SetupHeap+29067
42: 00007FF75CE2A022 v8::internal::Execution::CallWasm+1698
43: 00007FF75CE2985F v8::internal::Execution::Call+191
44: 00007FF75CF30EF1 v8::Function::Call+609
45: 00007FF75C677878 node::CallbackScope::~CallbackScope+888
46: 00007FF75C677BEB node::CallbackScope::~CallbackScope+1771
47: 00007FF75C66F714 v8::internal::compiler::Operator::EffectOutputCount+228
48: 00007FF75C4F9A53 RSA_meth_get_flags+20675
49: 00007FF75C4FA5CD RSA_meth_get_flags+23613
50: 00007FF75C4F4EF9 RSA_meth_get_flags+1385
51: 00007FF75C699E62 uv_thread_self+3986
52: 00007FF75C69CBEF uv_pipe_pending_type+3359
53: 00007FF75C6A798C uv_loop_init+940
54: 00007FF75C6A7C8A uv_run+202
55: 00007FF75C676F64 node::SpinEventLoop+308
56: 00007FF75C593F53 v8::internal::UnoptimizedCompilationInfo::feedback_vector_spec+52995
57: 00007FF75C60E387 node::Start+215
58: 00007FF75C43822C RC4_options+346412
59: 00007FF75D4F931C v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+151692
60: 00007FFEBE267034 BaseThreadInitThunk+20
61: 00007FFEBF922651 RtlUserThreadStart+33

I don't think this is prisma related error? As the error seems to come from node_http_parser.cc I guess this is related to node.

How to debug such error :(

@Flarna
Copy link
Member

Flarna commented Apr 30, 2021

I think this is caused by prisma using an incompatible version of undici. see #35582, #35572 and prisma/prisma#6684

@Flarna Flarna closed this as completed Apr 30, 2021
@shirshak55
Copy link
Author

@Flarna but isn't it nodejs issue to give such a bad message that you don't even know where the error came from, which package it came from. It nearly took me 1 hour to find it came from prisma. I think nodejs should give helpful message regardless.

@Flarna
Copy link
Member

Flarna commented May 2, 2021

The reason for the crash above is that a module used by prisma is calling an internal, non public API in the wrong way. All checks usually done by nodejs are bypassed here. There is not much nodejs can do in such cases.

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

2 participants