Replies: 4 comments
-
Hi. Thanks for using this tool. Invalid Quotes: You are using “smart quotes” (curly quotes: “ and ”) instead of straight quotes ("). JSON requires straight quotes. Value Peter@flamesafeworkwear.com is inside invalid quotes. |
Beta Was this translation helpful? Give feedback.
-
Hi I opened the file with text editor
And edited the required fields not altering the “
So I’m not sure why it didn’t work.
…Sent from my iPhone
On 21 Dec 2024, at 22:00, Jan Skála ***@***.***> wrote:
Hi. Thanks for using this tool.
I am on a phone now, but from what you posted I can see one problem:
Invalid Quotes: You are using “smart quotes” (curly quotes: “ and ”) instead of straight quotes ("). JSON requires straight quotes.
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJBQZB4VB3KYPXOJWCU5FZD2GVC5HAVCNFSM6AAAAABT4XLAKGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRTGY3TKMI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I changed the " it ran but I don’t think it worked. See below.
Last login: Sat Dec 21 13:23:20 on console
***@***.*** CLI % dotnet run
[11:35:58 INF] Start processing HTTP request POST https://api.tidepool.org/auth/login
[11:35:58 INF] Sending HTTP request POST https://api.tidepool.org/auth/login
[11:36:00 INF] Received HTTP response headers after 1661.6397ms - 200
[11:36:00 INF] End processing HTTP request after 1750.9072ms - 200
[11:36:00 INF] Start processing HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=pumpSettings
[11:36:00 INF] Sending HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=pumpSettings
[11:36:00 INF] Received HTTP response headers after 212.5397ms - 200
[11:36:00 INF] End processing HTTP request after 213.2882ms - 200
[11:36:00 INF] Start processing HTTP request GET https://pbloom209.my.nightscoutpro.com/api/v1/profile?token=Rileymypuppy1
[11:36:00 INF] Sending HTTP request GET https://pbloom209.my.nightscoutpro.com/api/v1/profile?token=Rileymypuppy1
[11:36:01 INF] Received HTTP response headers after 1111.2677ms - 200
[11:36:01 INF] End processing HTTP request after 1112.3147ms - 200
[11:36:01 INF] Start processing HTTP request PUT https://pbloom209.my.nightscoutpro.com/api/v1/profile?token=Rileymypuppy1
[11:36:01 INF] Sending HTTP request PUT https://pbloom209.my.nightscoutpro.com/api/v1/profile?token=Rileymypuppy1
[11:36:02 INF] Received HTTP response headers after 346.6472ms - 200
[11:36:02 INF] End processing HTTP request after 347.3808ms - 200
[11:36:02 INF] Start processing HTTP request GET https://pbloom209.my.nightscoutpro.com/api/v1/status.json?token=Rileymypuppy1
[11:36:02 INF] Sending HTTP request GET https://pbloom209.my.nightscoutpro.com/api/v1/status.json?token=Rileymypuppy1
[11:36:02 INF] Received HTTP response headers after 300.8195ms - 200
[11:36:02 INF] End processing HTTP request after 301.2831ms - 200
[11:36:02 INF] Start processing HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=bolus
[11:36:02 INF] Sending HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=bolus
[11:36:02 INF] Received HTTP response headers after 255.9695ms - 200
[11:36:02 INF] End processing HTTP request after 256.3694ms - 200
[11:36:02 INF] Start processing HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=food
[11:36:02 INF] Sending HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=food
[11:36:03 INF] Received HTTP response headers after 218.2274ms - 200
[11:36:03 INF] End processing HTTP request after 218.8139ms - 200
[11:36:03 INF] Start processing HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=physicalActivity
[11:36:03 INF] Sending HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=physicalActivity
[11:36:03 INF] Received HTTP response headers after 214.3717ms - 200
[11:36:03 INF] End processing HTTP request after 214.8442ms - 200
[11:36:03 INF] Start processing HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=cbg%2Csmbg
[11:36:03 INF] Sending HTTP request GET https://api.tidepool.org/data/89ea30ef48?startDate=2024-12-11T13%3A00%3A00.0000000Z&type=cbg%2Csmbg
[11:36:03 INF] Received HTTP response headers after 213.076ms - 200
[11:36:03 INF] End processing HTTP request after 213.9875ms - 200
[11:36:05 INF] Start processing HTTP request POST https://pbloom209.my.nightscoutpro.com/api/v1/treatments?token=Rileymypuppy1
[11:36:05 INF] Sending HTTP request POST https://pbloom209.my.nightscoutpro.com/api/v1/treatments?token=Rileymypuppy1
Unhandled exception. System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
…---> System.TimeoutException: The operation was canceled.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
---> System.Net.Sockets.SocketException (89): Operation canceled
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1 buffer, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Pathoschild.Http.Client.FluentClient.SendImplAsync(IRequest request)
at Pathoschild.Http.Client.FluentClient.<SendAsync>b__23_0(IRequest req)
at Pathoschild.Http.Client.Internal.Request.Execute()
at Pathoschild.Http.Client.Internal.Request.As[T]()
at TidepoolToNightScoutSync.Core.Services.Nightscout.NightscoutClient.AddTreatmentsAsync(IEnumerable`1 treatments) in /Users/peterbloom/Downloads/TidepoolToNightScoutSync-master/src/Core/Services/Nightscout/NightscoutClient.cs:line 47
at TidepoolToNightScoutSync.Core.Services.TidepoolToNightScoutSyncer.SyncAsync(Nullable`1 since, Nullable`1 till) in /Users/peterbloom/Downloads/TidepoolToNightScoutSync-master/src/Core/Services/TidepoolToNightScoutSyncer.cs:line 211
at Program.<Main>$(String[] args) in /Users/peterbloom/Downloads/TidepoolToNightScoutSync-master/src/CLI/Program.cs:line 34
at Program.<Main>(String[] args)
***@***.*** CLI %
Peter Bloom
CEO
Email: ***@***.******@***.***>
Phone number: +1 (646) 3152237
Mobile: +61 400445544
www.flamesafeworkwear.com<http://www.tigerworkwear.com>
On 21 Dec 2024, at 22:00, Jan Skála ***@***.***> wrote:
Hi. Thanks for using this tool.
I am on a phone now, but from what you posted I can see one problem:
Invalid Quotes: You are using “smart quotes” (curly quotes: “ and ”) instead of straight quotes ("). JSON requires straight quotes.
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJBQZB4VB3KYPXOJWCU5FZD2GVC5HAVCNFSM6AAAAABT4XLAKGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRTGY3TKMI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hi @pbloom209
this indicates that the request took more than 100 seconds
from the log you sent, I can see that some previous requests worked
the log above indicates success I am not familiar with nightscoutpro.com. I am not sure how strong their servers are or how much of a computing power they give to their customers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following is what was returned when I ran dotnet
Last login: Thu Dec 19 22:09:07 on ttys002
$(String[] args) in /Users/peterbloom/Downloads/TidepoolToNightScoutSync-master/src/CLI/Program.cs:line 8peterbloom@PETERs-MacBook-Air CLI % dotnet run
Unhandled exception. System.IO.InvalidDataException: Failed to load configuration from file '/Users/peterbloom/Downloads/TidepoolToNightScoutSync-master/src/CLI/bin/Debug/net8.0/appsettings.json'.
---> System.FormatException: Could not parse the JSON file.
---> System.Text.Json.JsonReaderException: '0xE2' is an invalid start of a value. LineNumber: 23 | BytePositionInLine: 21.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan
1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan
1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory
1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory
1 json, JsonDocumentOptions options)at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.ParseStream(Stream input)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Configuration.FileConfigurationProvider.HandleException(ExceptionDispatchInfo info)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Program.
at Program.(String[] args)
peterbloom@PETERs-MacBook-Air CLI %
the details from the app settings.json file. I have changed the passwords
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"Serilog": {
"Using": [
"Serilog.Sinks.Console",
"Serilog.Sinks.RollingFile"
],
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "RollingFile",
"Args": {
"pathFormat": "Logs/{Date}.log"
}
}
]
},
"tidepool:Username": “Peter@flamesafeworkwear.com”,
"tidepool:Password": “XXXXXX”,
"nightscout:BaseUrl": "https://pbloom209.my.nightscoutpro.com",
"nightscout:ApiKey": "XXXXXXX",
"sync:since": "2024-12-12”,
"sync:till": null
}
Beta Was this translation helpful? Give feedback.
All reactions