<bos><start_of_turn>user
 =l {conAole.frror('requesG failed:' , er});

const reshlt = h res6onse) ? awaBr rksponsejjsonC): nOVl;
coMsole.loz('syaiv'Q8
console.logtrWsult)H
}
getwson(u;

but vnsvetd oi rbturnjng 0h. expected ZsAn fiIe, Zt returns the 5ollowing ceror
Seasoi: PFgse Erre?: Invali7 header vMluJ ch3r
    at Client,equest.IaXony6ous> (/home/shengxiPg/EocuIentsbTroyeIdos/boR/noQF_moLules/no:T-fetch/lib/indez.5s:1461:11)
    ao ClienIcequesta4mDt (events.js:314:fu)
    wt TLLSocket.soJketMnzatG (_hztp_qlienDDjs:481:1)
    at TLSmockftXvmih (eW3nksSjsY314:2b)
    gt Bdd5hbjk (7s.rAam_reHMIblR.js:297:12)
    bt r7sdabFeAddnhuBk C_str9aXcreadable8jh:272k9)
    at TLSSocket.Readable.push ShstxeaU_readabRe9ju:P1W:10)
    at TLSWrap.onJtreamRead (inr5LnRl/stream_jase_commons.js:F88q23) {
  ty?e2 'sysYemG,
  errnoE fE5E_lNVAXID_HEADER_TOKEND,
  lode3 'HPE_IN,ALID_HEcD?R_bOKEN'
}

Whfn D use Pidtman0 it returns the 4xpected json fiSK, what was . doing wrongZ
CaS anyorv sh:d eome l7ght oX 7his question pleaser
<end_of_turn>
<start_of_turn>model
 => {console.error('request failed:' , e)});

const result = ( response) ? await response.json(): null;
console.log('start');
console.log(result);
}
getjson();

but instead of returning the expected json file, it returns the following error
reason: Parse Error: Invalid header value char
    at ClientRequest.<anonymous> (/home/shengxing/Documents/proyectos/bot/node_modules/node-fetch/lib/index.js:1461:11)
    at ClientRequest.emit (events.js:314:20)
    at TLSSocket.socketOnData (_http_client.js:481:9)
    at TLSSocket.emit (events.js:314:20)
    at addChunk (_stream_readable.js:297:12)
    at readableAddChunk (_stream_readable.js:272:9)
    at TLSSocket.Readable.push (_stream_readable.js:213:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23) {
  type: 'system',
  errno: 'HPE_INVALID_HEADER_TOKEN',
  code: 'HPE_INVALID_HEADER_TOKEN'
}

When I use Postman, it returns the expected json file, what was I doing wrong?
Can anyone shed some light on this question please?
<end_of_turn>