-
Notifications
You must be signed in to change notification settings - Fork 51
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
OSError: 401 insufficient permissions (not registered)c #73
Comments
Have the same problem after regitration pattern |
Can you please elaborate? What is the environment: TV model, web os version, python version, library version, minimal+verifiable code to reproduce the issue? Have you tried removing all previous registrations and tried re-registering? Factory reset? Can you control the TV via LG's app? |
Hello ! My question is more than, how do you connect to TV with registration? For exemple on aiowebostv lib, I found: My registration Function working (Key is stored):
I hope this is the same issue as lnx EDIT: Add error trace:
|
I just looked at aiopylgtv repository. The registration payload seems to be identical. Actually, this repo has a superset of fields than the one in aiopylgtv. Can you confirm if aiopylgtv repo works? If that one works, and this repo doesn't then it's definitely a bug which we need to fit. |
Thanks for answer. I confirm, your repo have more fields than aiopylgtv On aiopylgtv I use generated key by PyWebOSTV to do my tests.
It calls:
On PyWebOSTV -> client = WebOSClient(HOST, CLIENT_KEY) Return python error "3 args given, for 2 attended" If i can help you don't hesitate |
I can try a code snippet if you want give one, like a register a connection and a system test message |
Sorry, I missed going through this snippet. There's a problem here. |
Hi, i've the same issue. I don't know what i'm doing wrong... Following the registering method:
The connect method:
My APIObject is just a class which allows me to easily read/write into my storage file, it looks like: {
"name": "TV",
"ip": "192.168.1.42",
"api_key": "613738960ad2334e45c3a4c801e10dd7"
} The registering method is perfect, the issue is the 'connect' method which doesn't accept to register to the equipment with the api_key value. when I try to start a 'notify' control with the 'connect' method, I have the 401 issue. Sorry, but I'm actually blocked now... |
I found, but why i need to browse the status in the register function even if i don't need to wait for the equipment validation ? |
OSError: 401 insufficient permissions (not registered)
can seem to connect even after i registered and the access token stored in the store
The text was updated successfully, but these errors were encountered: