We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf1e4ee + 260c546 commit 55e27a6Copy full SHA for 55e27a6
Src/Notion.Client/RestClient/RestClient.cs
@@ -64,8 +64,9 @@ private static async Task<Exception> BuildException(HttpResponseMessage response
64
{
65
errorResponse = JsonConvert.DeserializeObject<NotionApiErrorResponse>(errorBody);
66
}
67
- catch
+ catch(Exceptionex)
68
69
+ Log.Error(ex, "Error when parsing the notion api response.");
70
71
72
@@ -84,7 +85,7 @@ public async Task<HttpResponseMessage> SendAsync(
84
85
86
requestUri = AddQueryString(requestUri, queryParams);
87
- HttpRequestMessage httpRequest = new HttpRequestMessage(httpMethod, requestUri);
88
+ usingvar httpRequest = new HttpRequestMessage(httpMethod, requestUri);
89
httpRequest.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _options.AuthToken);
90
httpRequest.Headers.Add("Notion-Version", _options.NotionVersion);
91
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments