nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

Parse Error: Invalid character in chunk size #4434

Open stoffel7 opened 5 days ago

stoffel7 commented 5 days ago

Version

V20.15.0

Platform

Linux raspberrypi 6.1.21-v7+ nodejs/node#1642 SMP Mon Apr  3 17:20:52 BST 2023 armv7l GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

see following code ` async function Counter() {

httpGet('http://10.10.13.14/counter?PW=&', {
    timeout: 2000
},
(error, response) => {
    if (!error) {
            if (error) {
                log('Fehler  ' + error, 'warn');
            } else {
                log( response.data); 
            }
    } else {
        console.error(error);
    }
});

} Counter(); `

How often does it reproduce? Is there a required condition?

every time with Nodejs V20.15 is does not happen in V18.17

What is the expected behavior? Why is that the expected behavior?

this is the expected output: counter;0;0;0;95998;0;0;0;0;0;713496;0;0

What do you see instead?

script.js.Skript_9: Parse Error: Invalid character in chunk size

Additional information

what is wrong here… with NodeJS V18.17.1 is doesn‘t happen

RedYetiDev commented 5 days ago

Hi! Thanks for the report, can you provide a minimal reproducible example? One that utilizes only Node.js features?