I’m developing an app that has to access a Plex account and read its watch history.
When visiting the generated authentication URL, the user can log in with their account, but when they actually authorize the app into their account, it receives this response:
{
"code": 1068,
"message": "This action is not available for this device.",
"status": 403
}
I saw another thread experiencing the same issue, but that was from almost 4 years ago and it offered a temporary solution by changing the context[device][product] to ‘Plex Web’, which I don’t want to do.
Ultimately it was an internal issue in the Plex API and was solved by an employee.
But that was years ago and now the issue is back. Or at least, I’m experiencing it.
This is some more data on the HTTP request:
PUT https://plex.tv/api/v2/pins/link
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Plex-Token: v45GX-aJAaVgBPSPeQS4
X-Plex-Product: <app name>
X-Plex-Version: undefined
X-Plex-Client-Identifier: <myidentifier>
X-Plex-Platform: undefined
X-Plex-Platform-Version: undefined
X-Plex-Device: undefined
X-Plex-Device-Name: undefined
X-Plex-Device-Screen-Resolution: undefined
Origin: https://app.plex.tv
DNT: 1
Connection: keep-alive
Referer: https://app.plex.tv/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
Sec-GPC: 1
TE: trailers --data-raw code=<mycode>