You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Not all parameters are present in the object argument in the call to ResponseReceived! Required params: 'requestId', `timestamp`, `type`, `response`");
36
+
}
37
+
38
+
auto requestId = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "requestId")).ToLocalChecked()->ToString();
39
+
auto type = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "type")).ToLocalChecked()->ToString();
40
+
auto response = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "response")).ToLocalChecked();
41
+
auto timeStamp = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "timestamp")).ToLocalChecked()->ToNumber()->IntegerValue();
42
+
43
+
auto responseAsObj = response->ToObject();
44
+
v8::Local<v8::String> responseJson;
45
+
auto maybeResponseJson = v8::JSON::Stringify(context, responseAsObj);
46
+
47
+
if (!maybeResponseJson.ToLocal(&responseJson)) {
48
+
throwNativeScriptException("`response` parameter not in the correct format.");
49
+
}
50
+
51
+
auto responseJsonString = ArgConverter::ConvertToString(responseJson).c_str();
52
+
auto protocolResponseJson = protocol::parseJSON(responseJsonString);
53
+
54
+
protocol::ErrorSupport errorSupport;
55
+
56
+
auto protocolResponseObj = protocol::Network::Response::parse(protocolResponseJson.get(),
57
+
&errorSupport);
58
+
59
+
auto requestIdString = ArgConverter::ConvertToString(requestId).c_str();
60
+
auto networkRequestData = newv8_inspector::utils::NetworkRequestData();
throwNativeScriptException("Not all parameters are present in the object argument in the call to RequestWillBeSent! Required params: 'requestId', `url`, `timestamp`, `type`, `request`, `timestamps`");
109
+
}
110
+
111
+
auto requestId = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "requestId")).ToLocalChecked()->ToString();
112
+
auto url = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "url")).ToLocalChecked()->ToString();
113
+
auto request = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "request")).ToLocalChecked();
114
+
auto timeStamp = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "timestamp")).ToLocalChecked()->ToNumber()->IntegerValue();
115
+
auto typeArg = argsObj->Get(context, ArgConverter::ConvertToV8String(isolate, "type")).ToLocalChecked()->ToString();
116
+
117
+
auto requestAsObj = request->ToObject();
118
+
v8::Local<v8::String> requestJson;
119
+
auto maybeRequestJson = v8::JSON::Stringify(context, requestAsObj);
120
+
121
+
if (!maybeRequestJson.ToLocal(&requestJson)) {
122
+
throwNativeScriptException("`request` parameter not in the correct format.");
123
+
}
124
+
125
+
auto requestJsonString = ArgConverter::ConvertToString(requestJson).c_str();
126
+
auto protocolRequestJson = protocol::parseJSON(requestJsonString);
127
+
128
+
protocol::ErrorSupport errorSupport;
129
+
130
+
auto protocolResponseObj = protocol::Network::Request::parse(protocolRequestJson.get(), &errorSupport);
131
+
auto initiator = protocol::Network::Initiator::create().setType(protocol::Network::Initiator::TypeEnum::Script).build();
0 commit comments