Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unirest in throws errors in smoke tests #3

Open
philipithomas opened this issue Feb 25, 2017 · 2 comments
Open

Unirest in throws errors in smoke tests #3

philipithomas opened this issue Feb 25, 2017 · 2 comments

Comments

@philipithomas
Copy link
Member

Traceback (most recent call last):
  File "/opt/python/2.7.12/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/opt/python/2.7.12/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages/unirest/__init__.py", line 82, in __request
    encoded_string = base64.b64encode(user + ':' + password)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
@philipithomas
Copy link
Member Author

@isaacm
Copy link

isaacm commented Apr 4, 2017

I think this error is caused by sending events to intercom.io here.

If no tracking needs to happen during testing, then checking current_app.config.get("ENV") in ["dev", "test"] here should prevent the call to intercom.io API while running smoke tests.

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

No branches or pull requests

2 participants