I am starting out my F# journey and decided to try the Oryx framework as a HTTP client. I faced this issue when I copy-pasted your primary documented example.
Result: Error
System.Exception: Must set HttpClient
at Oryx.HttpContextModule.defaultRequest@125.Invoke(Unit unitVar0)
at Oryx.Fetch.fetch@72-1.MoveNext()
at Oryx.Pipeline.Core.runUnsafeAsync@35.MoveNext()
at Oryx.Pipeline.Core.runAsync@42.MoveNext()
Here is a screenshot from Visual Studio Preview for Mac showcasing the code with the error.
I found by moving withHttpClient client above fetch solved the problem. Is this an error or am I using the example code wrong?
I am starting out my F# journey and decided to try the Oryx framework as a HTTP client. I faced this issue when I copy-pasted your primary documented example.
Here is a screenshot from Visual Studio Preview for Mac showcasing the code with the error.
I found by moving
withHttpClient client
abovefetch
solved the problem. Is this an error or am I using the example code wrong?