question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replacing Request.js with Got

See original GitHub issue

As you probably know Request.js has been officially deprecated since Feb 11, 2020. Request.js is the HTTP library that Artillery uses under the hood.

Work on moving to Got.js is already underway and is expected to complete soon.

Why Got

  • Lots of features, see the feature comparison table for details. HTTP/2 support is especially promising.
  • Actively developed & maintained.
  • Migration looks to be quite straightforward.

When

Soon™️. A preview release should be available in the next few days.

Update 10/05 master is now fully-migrated to Got.js with full-backwards compatibility. The plan is to increase test coverage before marking the work as done.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
enudlercommented, Mar 31, 2020

test file:

{
  "config": {
    "http": {
      "pool": 250
    },
    "target": "http://localhost:3001/webhooks",
    "phases": [{
      "duration": 60,
      "arrivalRate": 1000
    }]
  },
  "scenarios": [
    {
      "name": "Scenario 1",
      "weight": 100,
      "flow": [
        {
          "get": {
            "url": "http://localhost:3001/webhooks"
          }
        }
      ]
    }
  ]
}

master:

All virtual users finished

Summary report @ 14:50:38(+0300) 2020-03-31 Total time: 2 minutes, 18 seconds http.request_rate: … 435/sec avg http.response_rate: … 435/sec avg scenarios.created.Scenario 1: … 60000 scenarios.created.total: … 60000 scenarios.completed: … 60000 http.requests: … 60000 http.codes.200: … 60000 http.responses: … 60000 scenarios.duration: min: … 2 max: … 469.9 median: … 5 p95: … 9 p99: … 17 http.response_time: min: … 2 max: … 430.9 median: … 5 p95: … 7 p99: … 13

1.6.0-29 All virtual users finished Summary report @ 14:23:27(+0300) 2020-03-31 Scenarios launched: 60000 Scenarios completed: 60000 Requests completed: 60000 RPS sent: 914.91 Request latency: min: 0.2 max: 99.4 median: 1.8 p95: 2.7 p99: 3.9 Scenario counts: Scenario 1: 60000 (100%) Codes: 200: 60000

2reactions
hassycommented, Feb 16, 2020

New version of Artillery’s HTTP engine using Got is now on master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request is going into maintenance mode, this is what you ...
As a starting point, here's a list of good alternatives to replace request , all of which rely on the new, post-Node.js 8.x...
Read more >
Alternative libraries to request · Issue #3143 - GitHub
We have a good comparison between got , request , node-fetch , axios , and ... Consider replacing request package nodejs/node-gyp#1707.
Read more >
node.js - Replacing depreciated request npm module with got
I am trying to replace requests using depreciated request npm module with got. When I hardcode my api key it works fine.
Read more >
NodeJS: migrate from deprecated Request package to Got
NodeJS: migrate from deprecated Request package to Got · Possible alternatives and decision for Got · Basic migration steps · Authorization Header ...
Read more >
got - npm
Human-friendly and powerful HTTP request library for Node.js. Latest version: 12.5.3 ... Start using got in your project by running `npm i got`....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found