Closed dbsleiman closed 4 years ago
this affects me at startup time as well, seeing several hundred of these in the log:
[...]
[07:09:03] [INF] Validating media library
[07:10:54] [ERR] Error in Google Books
MediaBrowser.Model.Net.HttpException: Forbidden
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.EnsureSuccessStatusCode(HttpResponseMessage response, HttpRequestOptions options)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookData(String googleBookId, CancellationToken cancellationToken)
at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
[07:10:55] [ERR] Error in Google Books
MediaBrowser.Model.Net.HttpException: Forbidden
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.EnsureSuccessStatusCode(HttpResponseMessage response, HttpRequestOptions options)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsyncInternal(HttpRequestOptions options, HttpMethod httpMethod)
at Emby.Server.Implementations.HttpClientManager.HttpClientManager.SendAsync(HttpRequestOptions options, HttpMethod httpMethod)
at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetSearchResultsInternal(BookInfo item, CancellationToken cancellationToken)
at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.FetchBookId(BookInfo item, CancellationToken cancellationToken)
at Jellyfin.Plugin.Bookshelf.Providers.GoogleBooks.GoogleBooksProvider.GetMetadata(BookInfo item, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
[...]
A new version of the plugin will be auto built. Can you give version 2 a try and let me know if you still get any errors?
Thanks! It doesn't look like a release built though - https://github.com/jellyfin/jellyfin-plugin-bookshelf/releases
@hauntingEcho Oh wow I totally spaced on that. Thanks for the note. Creating now. The auto builder should pick it up shortly.
Grab it while it's hot! Should be in the catalog soon too. https://github.com/jellyfin/jellyfin-plugin-bookshelf/releases/tag/v2
Thanks! Updated, re-enabled, and rescanned. I'm not seeing this error in the log so far.
When trying to refresh book metadata, received this in logs:
When trying to run a basic search against the google books api in the browser using the keys and info in
ApiUrls.cs
, got this:Possible solution might be an option for the user to provide their own API key to google books api.