when trying let ChartNow = ChartData.Load(polReq1)
System.InvalidOperationException: This stream does not support writing
at System.IO.Compression.DeflateStream.BeginWrite (System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.AsyncCallback cback, System.Object state) [0x00021] in :0
at System.IO.Stream+<>c.b__53_0 (System.IO.Stream stream, System.IO.Stream+ReadWriteParameters args, System.AsyncCallback callback, System.Object state) [0x00000] in :0
at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncTrim[TInstance,TArgs] (TInstance thisRef, TArgs args, System.Func5[T1,T2,T3,T4,TResult] beginMethod, System.Func3[T1,T2,TResult] endMethod) [0x00008] in <b697cffb61b74023aa9c587e6c49beb3>:0 at System.IO.Stream.BeginEndWriteAsync (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00000] in <b697cffb61b74023aa9c587e6c49beb3>:0 at System.IO.Stream.WriteAsync (System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Threading.CancellationToken cancellationToken) [0x00009] in <b697cffb61b74023aa9c587e6c49beb3>:0 at System.IO.Compression.GZipStream.WriteAsync (System.Byte[] array, System.Int32 offset, System.Int32 count, System.Threading.CancellationToken cancellationToken) [0x00006] in <f040dd46aca1406687d2fd7ae8251c9c>:0 at System.IO.Compression.GZipStream.BeginRead (System.Byte[] array, System.Int32 offset, System.Int32 count, System.AsyncCallback asyncCallback, System.Object asyncState) [0x00009] in <f040dd46aca1406687d2fd7ae8251c9c>:0 at Microsoft.FSharp.Control.CommonExtensions+AsyncRead@2134.Invoke (System.Tuple5[T1,T2,T3,T4,T5] tupledArg) [0x00025] in <5893d081904cf4daa745038381d09358>:0
at <StartupCode$FSharp-Core>.$Control+FromBeginEnd@1897-4[TArg1,TArg2,TArg3].Invoke (System.Tuple2[T1,T2] tupledArg) [0x0002e] in <5893d081904cf4daa745038381d09358>:0 at <StartupCode$FSharp-Core>.$Control+FromBeginEnd@1836-1[T].Invoke (System.Threading.CancellationToken _arg4) [0x0005c] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Control.AsyncBuilderImpl+args@825-1[a,b].Invoke (a a) [0x00016] in <5893d081904cf4daa745038381d09358>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <b697cffb61b74023aa9c587e6c49beb3>:0 at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a] (Microsoft.FSharp.Control.AsyncBuilderImpl+AsyncImplResult1[T] res) [0x0002d] in <5893d081904cf4daa745038381d09358>:0
at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronouslyInCurrentThread[a] (System.Threading.CancellationToken token, Microsoft.FSharp.Control.FSharpAsync1[T] computation) [0x00029] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a] (System.Threading.CancellationToken token, Microsoft.FSharp.Control.FSharpAsync1[T] computation, Microsoft.FSharp.Core.FSharpOption1[T] timeout) [0x00014] in <5893d081904cf4daa745038381d09358>:0 at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T] (Microsoft.FSharp.Control.FSharpAsync1[T] computation, Microsoft.FSharp.Core.FSharpOption1[T] timeout, Microsoft.FSharp.Core.FSharpOption1[T] cancellationToken) [0x00071] in <5893d081904cf4daa745038381d09358>:0
at <StartupCode$FSI_0014>.$FSI_0014.main@ () [0x0002e] in <6a5227d9755b4970872adcd8a3345fea>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0
The script works without any problem if F# interactive is executed in a terminal window
I'm trying this code for example
https://gist.github.com/FaguiCurtain/9d2d835758e845cdd3055ef2b2555fab
I get the following error
when trying
let ChartNow = ChartData.Load(polReq1)
The script works without any problem if F# interactive is executed in a terminal window