Forum Archive

UnicodeDecodeError in _appex.get_input()

ABLPHA

Hi

Can somebody help me? I tried to get link from AppStore's Share Sheet Extension, but when I typed _appex.get_input() this occurred:

```

_appex.get_input()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
SystemError: returned a result with an error set```

How to ignore this error or read bytes?

Cethric

In general the _appex model is not really meant to be used as it is the backend for the appex wrapper module. Try using:

import appex
print(appex.get_text())
print(appex.get_urls()) # or appex.get_url()
ABLPHA

@Cethric thanks for the answer, but when I typed print(appex.get_url()) the same error occurred.

omz

Which version of Pythonista are you using?

ABLPHA

@omz 3.0 (300018)

omz

@ABLPHA Could you please upgrade to the latest version (3.1) and check if the issue persists?