Skip to content

Stacktrace on MACOS but not on Linux Alpine. #23

@marc0janssen

Description

@marc0janssen

I get this stack trace on MACOS but not running the same code on Linux Alpine

Traceback (most recent call last):
File "/Users/marco/Documents/GitHub/NSMeldingen/./app/test.py", line 7, in
message = user.send_message("What's up, dog?")
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chump/init.py", line 569, in send_message
message.send()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chump/init.py", line 739, in send
self._response, self.sent_at = self.user.app._request('message', data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chump/init.py", line 337, in _request
response = pool.open(url, bytes(urlencode(data), 'utf-8', 'strict') if data else None)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chump/connection_pool.py", line 82, in https_open
if response.raw.will_close:
AttributeError: 'NoneType' object has no attribute 'raw'

from chump import Application
app = Application('xxxxxxxxx')
user = app.get_user('yyyyyyyyy')
message = user.send_message("What's up, dog?")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions