{"action":"opened","issue":{"url":"https://api.github.com/repos/3scale/3scale_ws_api_for_nodejs/issues/18","labels_url":"https://api.github.com/repos/3scale/3scale_ws_api_for_nodejs/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/3scale/3scale_ws_api_for_nodejs/issues/18/comments","events_url":"https://api.github.com/repos/3scale/3scale_ws_api_for_nodejs/issues/18/events","html_url":"https://github.com/3scale/3scale_ws_api_for_nodejs/issues/18","id":53833020,"number":18,"title":"RangeError when running tests","user":{"login":"MWers","id":808995,"avatar_url":"https://avatars.githubusercontent.com/u/808995?v=3","gravatar_id":"","url":"https://api.github.com/users/MWers","html_url":"https://github.com/MWers","followers_url":"https://api.github.com/users/MWers/followers","following_url":"https://api.github.com/users/MWers/following{/other_user}","gists_url":"https://api.github.com/users/MWers/gists{/gist_id}","starred_url":"https://api.github.com/users/MWers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MWers/subscriptions","organizations_url":"https://api.github.com/users/MWers/orgs","repos_url":"https://api.github.com/users/MWers/repos","events_url":"https://api.github.com/users/MWers/events{/privacy}","received_events_url":"https://api.github.com/users/MWers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T04:36:50Z","updated_at":"2015-01-09T04:36:50Z","closed_at":null,"body":"When running tests, I received the following error:\r\n\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n```\r\n\r\nThis error would occur every time I ran tests but it would occur at a different point in the tests. The following two examples were run consecutively 10 seconds apart:\r\n\r\n```\r\n$ TEST_3SCALE_PROVIDER_KEY=[redacted] TEST_3SCALE_APP_ID=[redacted] TEST_3SCALE_APP_KEY=[redacted] ./node_modules/.bin/vows test/* --spec\r\n\r\n♢ Basic test for the 3Scale::AuthorizeResponse\r\n\r\n  A authorize_response Should\r\n    ✓ have a add_usage_report method\r\n    ✓ can push a new UsageReport\r\n\r\n♢ Basic test for the 3Scale::Client\r\n\r\n    - The oauth_authorize method should\r\n  A client\r\n    ✓ should throw an exception if init without provider_key\r\n    ✓ should have an default host\r\n    ✓ can change the default host\r\n    ✓ should have an authorize method\r\n    ✓ should throw an exception if authorize method is called without :app_id\r\n    ✓ should have an oauth_authorize method\r\n    ✓ should throw an exception if oauth_authorize method is called without :app_id\r\n    ✓ should have an authorize_with_user_key method\r\n    ✓ should throw an exception if authorize_with_user_key is called without :user_key\r\n    ✓ should have an authrep method\r\n    ✓ should throw an exception if authrep called without :app_id\r\n    ✓ should have an authrep_with_user_key method\r\n    ✓ should throw an exception if authrep_with_user_key is called without :user_key\r\n  The Event Emitter\r\n    ✓ call the callback with a error response if app_id was wrong\r\n  In the transaction method should\r\n    ✓ give a success response with the correct params\r\n\r\n✗ Errored » callback not fired\r\n    in The authorize method should\r\n    in Basic test for the 3Scale::Client\r\n    in test/client_test.js\r\n✗ Errored » callback not fired\r\n    in Request headers in authorize calls\r\n    in Basic test for the 3Scale::Client\r\n    in test/client_test.js\r\n✗ Errored » callback not fired\r\n    in Request headers in report calls\r\n    in Basic test for the 3Scale::Client\r\n    in test/client_test.js\r\n✗ Errored » 17 honored ∙ 1 errored ∙ 1 pending ∙ 5 dropped\r\n\r\n\r\nRangeError: Maximum call stack size exceeded\r\n```\r\n\r\n```\r\n$ TEST_3SCALE_PROVIDER_KEY=[redacted] TEST_3SCALE_APP_ID=[redacted] TEST_3SCALE_APP_KEY=[redacted] ./node_modules/.bin/vows test/* --spec\r\n\r\n♢ Basic test for the 3Scale::AuthorizeResponse\r\n\r\n  A authorize_response Should\r\n    ✓ have a add_usage_report method\r\n    ✓ can push a new UsageReport\r\n\r\n♢ Basic test for the 3Scale::Client\r\n\r\n    - The oauth_authorize method should\r\n  A client\r\n    ✓ should throw an exception if init without provider_key\r\n    ✓ should have an default host\r\n    ✓ can change the default host\r\n    ✓ should have an authorize method\r\n    ✓ should throw an exception if authorize method is called without :app_id\r\n    ✓ should have an oauth_authorize method\r\n    ✓ should throw an exception if oauth_authorize method is called without :app_id\r\n    ✓ should have an authorize_with_user_key method\r\n    ✓ should throw an exception if authorize_with_user_key is called without :user_key\r\n    ✓ should have an authrep method\r\n    ✓ should throw an exception if authrep called without :app_id\r\n    ✓ should have an authrep_with_user_key method\r\n    ✓ should throw an exception if authrep_with_user_key is called without :user_key\r\n  Request headers in authorize calls\r\n    ✓ should include the 3scale user agent\r\n    ✓ should include the default 3scale host\r\n  Request headers in report calls\r\n    ✓ should include the 3scale user agent\r\n    ✓ should include the default 3scale host\r\n  In the transaction method should\r\n    ✓ give a success response with the correct params\r\n  The Event Emitter\r\n    ✓ call the callback with a error response if app_id was wrong\r\n\r\n✗ Errored » callback not fired\r\n    in The authorize method should\r\n    in Basic test for the 3Scale::Client\r\n    in test/client_test.js\r\n✗ Errored » 21 honored ∙ 1 errored ∙ 1 pending ∙ 1 dropped\r\n\r\n\r\nRangeError: Maximum call stack size exceeded\r\n```\r\n\r\nTo fix this, I upgraded `vows` to the following in `package.json`:\r\n\r\n```\r\n\"vows\": \"0.8.x\"\r\n```\r\n\r\n"}}