Description
Using other requests is fine but when i try to use the below I always get an error
await plexAPI.library.getLibraryItems({
tag: Tag.Newest,
type: GetLibraryItemsQueryParamType.Movie,
sectionKey: 2,
});
The error is
Error fetching Plex libraries: [SDKValidationError: Response validation failed: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"object",
"MediaContainer",
"content"
],
"message": "Required"
}
]]
I can confirm my plex server has this library with the correct server key based on the result of getalllibraries
[
{
"agent": "tv.plex.agents.movie",
"allowSync": true,
"art": "/:/resources/movie-fanart.jpg",
"composite": "/library/sections/2/composite/1741755401",
"content": true,
"contentChangedAt": 97,
"createdAt": 1741755399,
"directory": true,
"filters": true,
"hidden": 0,
"key": "2",
"language": "en-US",
"location": [[Object]],
"refreshing": false,
"scannedAt": 1741755401,
"scanner": "Plex Movie",
"thumb": "/:/resources/movie.png",
"title": "Movies",
"type": "movie",
"updatedAt": 1741755399,
"uuid": "8ec97b41-34f3-4fca-90b9-fd7354dd8d69"
},
{
"agent": "tv.plex.agents.music",
"allowSync": true,
"art": "/:/resources/artist-fanart.jpg",
"composite": "/library/sections/1/composite/1741669669",
"content": true,
"contentChangedAt": 60,
"createdAt": 1741669618,
"directory": true,
"filters": true,
"hidden": 0,
"key": "1",
"language": "en-US",
"location": [[Object]],
"refreshing": false,
"scannedAt": 1741669669,
"scanner": "Plex Music",
"thumb": "/:/resources/artist.png",
"title": "Audio Books",
"type": "artist",
"updatedAt": 1741669618,
"uuid": "26c978eb-1ec7-4d2e-9bf9-2bfba4ca7b60"
}
]
Metadata
Metadata
Assignees
Labels
Projects
Status