Weird situation I got here, and I can’t quite figure it out. I would appreciate any ideas. Operating system is Ubuntu Server, processor is ARM. I’m cross compiling it for ARM from my dev machine. The error is this:
Unhandled exception in spawn: SSL_connect: error:0D0C5006:asn1 encoding routines:ASN1_item_verify:EVP lib (OpenSSL::SSL::Error)
Failed to raise an exception: FAILURE
[0x561f80] ???
[0x4dfbd8] __crystal_raise +36
[0x4ec79c] ???
[0x4e89e0] ???
The code that throws the error is this:
spawn do
HTTP::Client.get "https://restcountries.eu/rest/v2/alpha/can"
end
Here’s what’s weird. If I remove the thread, and run this, it doesn’t throw an error.
HTTP::Client.get "https://restcountries.eu/rest/v2/alpha/can"
What’s even weirder, if I add a puts
in front of it, it also doesn’t throw an error:
spawn do
puts HTTP::Client.get "https://restcountries.eu/rest/v2/alpha/can"
end
Does anyone else have any ideas what could be causing this?