-
-
Notifications
You must be signed in to change notification settings - Fork 178
Description
In order to get your bug addressed in a timely manner, or at all 😃, please fill out the below bug report. Please try to make it as easy as possible for us to understand what is going on. We may close out any bugs or issues without warning that are not complete or coherent.
In the bug template below anything is [square brackets] should be filled out or removed if the item doesn't apply.
Should you encounter an error that has not already been reported, please do the following when reporting it:
Bug Metadata
- Version of extract_msg: [0.45.0]
- Your python version: Python [3.8]
- How did you launch extract_msg?
- My command line or
- I used the extract_msg package
Describe the bug
A clear and concise description of what the bug is.
Exception has occurred: UnicodeDecodeError
'ascii' codec can't decode byte 0xfc in position 79: ordinal not in range(128)
File "/Users/yu/Workspace/Digital Poststelle/Dataset/getElement.py", line 72, in getFiles
msg = Message(msg_data)
File "/Users/yu/Workspace/Digital Poststelle/Dataset/getElement.py", line 228, in
msg = getFiles(token, files_id)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 79: ordinal not in range(128)
[ If applicable ]
**What code did you use or can we use to reproduce this error?
def getFiles(token, fileId):
payload = {}
headers = {
'Accept': 'text/plain',
'Authorization': f'Bearer {token}'
}
url = f"{base_url}/definitions/{definitionId}/files/{fileId}"
response = requests.request("GET", url, headers=headers, data=payload)
if response.status_code == 200:
msg_data = BytesIO(response.content)
msg = Message(msg_data)
return msg
return
Is there a message.msg file you want to share to help us reproduce this?
- Uploaded message (drag and drop on this window)
- Emailed message as an attachment to admins: [Enter Subject Line Here]
Traceback
[Put your traceback here]
Screenshots
[Insert any screenshots or debug pictures here]
Additional context
[Add any other context about the problem here.]