Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

not working at all #64

Open
theoephraim opened this issue Jun 9, 2015 · 8 comments
Open

not working at all #64

theoephraim opened this issue Jun 9, 2015 · 8 comments

Comments

@theoephraim
Copy link

I really want to use this module, but it is not working for me at all.
Changing the mode does nothing. As soon as it is included, all my requests just time out and do nothing.

  • I am using node v0.12.3
  • I am making https requests
  • I am using mocha and superagent

Trying to do some digging but maybe someone else knows what's up?

@Vuuo
Copy link

Vuuo commented Sep 3, 2015

+1

@kadamwhite
Copy link

@theoephraim Can you give some more specifics of the URLs you are trying to capture—such as the URLs being requested? Have you gotten any errors or tried running DEBUG=replay [your normal command], to get more verbose output?

@theoephraim
Copy link
Author

theoephraim commented Jan 18, 2016 via email

@oifland
Copy link

oifland commented Jul 13, 2016

Working with @donneler, with DEBUG=replay, we noticed that only the initial request was going out, but mocha seemed to be killing our test before responses were recorded. We eventually realized that async unit tests (e.g. HTTP requests) need a "done" callback so that mocha knows when they are done. See Asynchronous Unit Tests With Mocha, Promises, And WinJS for a great explanation.

Prior to using DEBUG=replay, the challenge was that we didn't see any output when running in record mode - nothing on the console and nothing recorded to fixtures/ so it almost looked like replay was doing nothing.

@djanowski
Copy link
Collaborator

Still an issue?

@laledhanashree
Copy link

@danturu
Copy link

danturu commented Jun 22, 2017

+1

@ggb667
Copy link

ggb667 commented Nov 9, 2018

require('supertest') has to come before require('replay').
Are you loading them in the proper order?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants