Hi Nala, Jaft,
I am unable to implement your solutions. The error I get is:
Wrong type (expecting exact integer): #<input-output: string 7ff564d887e0>
HTTP 500
Captured in <artanis/server/ragnarok.scm>
Threw in procedure handle-request :
[REASON] Internal ERROR wrong-type-arg (#f Wrong type (expecting ~A): ~S (exact integer #<input-output: string 7ff564d887e0>) (#<input-output: string 7ff564d887e0>))!
[SERVER ERROR] Internal error from server-side, rendering a 500 page for client ...
For example:
(open-socket-for-uri "
https://localhost:3000/123") ==> #<input-output: socket 16> (Note an integer socket )
(open-socket-for-uri "
https://blockchain.info/q/24hrprice") ==> #<input-output: string 7ff564d887e0> (a string)
(fcntl (open-socket-for-uri "
https://blockchain.info/q/24hrprice") F_GETFL 0) ==> Wrong type (expecting exact integer): #<input-output: string 7f171fd8abd0>
Are your solutions supposed to work with non-local URLs?
Thanks
Mortimer