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.

setupRequest is being called before setupClient

See original GitHub issue

Hi,

I’m having an issue, In the setupClient I assign some variables on the context, to use different values between the connections, that I have to use in the first request, but setupRequest is being called before setupClient, Should not be called setupClient first?

Thank in advance, Pola.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mcollinacommented, Nov 17, 2020

@mcollina perhaps we should take context as one of the options (with default {}) and use that here?

Yes, go for it.

1reaction
dnlupcommented, Oct 22, 2020

This change makes a lot of sense, but it might break the usage of setBody and setHeadersAndBody inside setupClient:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Load testing with Autocannon - NearForm
When using workers. When using workers, the functions passed to setupRequest and onResponse cannot be cloned while passing options to workers.
Read more >
autocannon/README.md - UNPKG
A path to a Unix Domain Socket or a Windows Named Pipe. A URL is still required in order to send the correct...
Read more >
autocannon-cig - npm
Fast HTTP benchmarking tool written in Node.js. Latest version: 1.2.0, last published: 2 years ago. Start using autocannon-cig in your ...
Read more >
mcollina/autocannon - Gitter
I have a question, I am having an issue with the progress bar when I want to ... issue as setupRequest is only...
Read more >
NEOCORTEC User Guide
The Wireless Encrypted Setup client mode is enabled when the node has 0xFFFF as its. Node ID. This can be programmed directly through...
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