ehForwarderBot / ehForwarderBot/efb-fb-messenger-slave

FetchImageURL: when sending request: The content you requested cannot be displayed at the moment. It may be temporarily unavailable, the link you clicked on may have expired or you may not have permission to view this page.

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
Traceback (most recent call last):

File "/usr/local/lib/python3.6/dist-packages/fbchat/client.py", line 2278, in _parseMessage
thread_id=thread_id, thread_type=thread_type, ts=ts, metadata=metadata, msg=m)

File "/usr/local/lib/python3.6/dist-packages/efb_fb_messenger_slave/efms_client.py", line 384, in onMessage
threading.Thread(target=self.on_message, args=args, kwargs=kwargs).run()

File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)

File "/usr/local/lib/python3.6/dist-packages/efb_fb_messenger_slave/efms_client.py", line 427, in on_message
self.attach_media(efb_msg, attachments[0])

File "/usr/local/lib/python3.6/dist-packages/efb_fb_messenger_slave/efms_client.py", line 252, in attach_media
url = self.fetchImageUrl(attachment['id'])

File "/usr/local/lib/python3.6/dist-packages/efb_fb_messenger_slave/efms_client.py", line 59, in fetchImageUrl
j = check_request(self._get(ReqUrl.ATTACHMENT_PHOTO, query={'photo_id': str(image_id)}))

File "/usr/local/lib/python3.6/dist-packages/fbchat/utils.py", line 232, in check_request
check_json(j)

File "/usr/local/lib/python3.6/dist-packages/fbchat/utils.py", line 211, 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 #1357031 when sending request: The content you requested cannot be displayed at the moment. It may be temporarily unavailable, the link you clicked on may have expired or you may not have permission to view this page.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.