HF RL Explorer

Task: Calling a JSON API with Node.js

Task: Calling a JSON API with Node.js: a task in Terminal-Lego-15k (Harbor dataset). When making HTTP requests in Node.js using the http module, the response object ( res ) is a stream, not a string. You cannot directly pass it to JSON.parse() . Attempting to do so results in the error:

The task

When making HTTP requests in Node.js using the `http` module, the response object (`res`) is a stream, not a string. You cannot directly pass it to `JSON.parse()`. Attempting to do so results in the error:

Part of PrimeIntellect/Terminal-Lego-15k.