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

.party machine broke #190

Closed
iandioch opened this issue Jul 12, 2018 · 2 comments
Closed

.party machine broke #190

iandioch opened this issue Jul 12, 2018 · 2 comments
Assignees
Labels

Comments

@iandioch
Copy link
Collaborator

⁣⁣Exception in thread Thread-354:
⁣⁣Traceback (most recent call last):
⁣⁣  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
⁣⁣    self.run()
⁣⁣  File "/usr/lib/python3.6/threading.py", line 864, in run
⁣⁣    self._target(*self._args, **self._kwargs)
⁣⁣  File "plugins/parrot.py", line 53, in main
⁣⁣    party(bot, message, image_send, text_send)
⁣⁣  File "plugins/parrot.py", line 41, in party
⁣⁣    image_send(party_url)
⁣⁣  File "plugins/parrot.py", line 49, in <lambda>
⁣⁣    thread_type=thread_type)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 1018, in sendRemoteImage
⁣⁣    image_id = self._uploadImage(image_url, remote_image, mimetype)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 978, in _uploadImage
⁣⁣    }, fix_request=True, as_json=True)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 158, in _postFile
⁣⁣    raise e
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 154, in _postFile
⁣⁣    return check_request(r, as_json=as_json)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/utils.py", line 205, in check_request
⁣⁣    check_json(j)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/utils.py", line 184, in check_json
⁣⁣    raise FBchatFacebookError('Error #{} when sending request: {}'.format(j['error'], j['errorDescription']), fb_error_code=j['error'], fb_error_message=j['errorDescription'])
⁣⁣fbchat.models.FBchatFacebookError: Error #1545026 when sending request: The type of file you're trying to attach isn't allowed. Please try again with a different format.

I think it might be because the party API URL isn't obviously an image, doesn't end in .png or something.

@iandioch
Copy link
Collaborator Author

Exception in thread Thread-183:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "plugins/parrot.py", line 53, in main
    party(bot, message, image_send, text_send)
  File "plugins/parrot.py", line 36, in party
    image = grab_image(message)
  File "plugins/parrot.py", line 28, in grab_image
    for a in message.attachments:
AttributeError: 'Message' object has no attribute 'attachments'

@iandioch
Copy link
Collaborator Author

closing because dupe of #203

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

No branches or pull requests

2 participants