Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.5.0
-
None
Description
Build: 6.5.0-4233
- Deploy following handler
function OnUpdate(doc, meta) {
|
var request = {
|
path : 'delay',
|
headers: {
|
"sample-header": "test"
|
}
|
};
|
try {
|
var response = curl("GET", server, request);
|
log('response body received from server:', response.body);
|
log('response headers received from server:', response.headers);
|
log('response status received from server:', response.status);
|
var res= new Uint8Array(response.body);
|
if(response.status == 200){
|
dst_bucket[meta.id]=response.body;
|
}
|
}
|
catch (e) {
|
log('error:', e);
|
}
|
}
|
|
|
|
function OnDelete(meta) {
|
var request = {
|
path : 'delay',
|
headers: {
|
"sample-header": "test"
|
}
|
};
|
try {
|
var response = curl("GET", server, request);
|
log('response body received from server:', response.body);
|
log('response headers received from server:', response.headers);
|
log('response status received from server:', response.status);
|
var res= new Uint8Array(response.body);
|
if(response.status == 200){
|
delete dst_bucket[meta.id];
|
}
|
}
|
catch (e) {
|
log('error:', e);
|
}
|
}
|
|
- Start debugger (although api fails but UI shows the debug URL)
http://10.143.190.102:8091/_p/event/startDebugger/?name=test
|
|
{
|
"name": "ERR_UNMARSHAL_PLD",
|
"code": 16,
|
"description": "Unable to unmarshal payload",
|
"attributes": null,
|
"runtime_info": {
|
"code": 16,
|
"info": "Failed to unmarshal request, err : unexpected end of JSON input"
|
}
|
}
|
|
- Add doc to source bucket
- You will get the url and then debug it , you will see there is no doc in destination and also error is not getting printed in application logs
Error in eventing logs
2019-09-10T00:01:57.240-07:00 [Error] Client::Get URL: http:///stopDebugger/?name=test Failed to set auth params, err: missing port in address
|
2019-09-10T00:01:57.240-07:00 [Error] UTIL Failed to capture v8 debugger url from url: http:///stopDebugger/?name=test, err: missing port in address
|
|
|
2019-09-10T00:02:28.297-07:00 [Error] SuperSupervisor::DebuggerCallback [1] value is nil
|