I’ve got this data mining app that uses a JSON API. It’s been working fine for months now.
All of a sudden it stopped working, now generating an exception error, “Key Not Found”
This is the code that’s been working…
Dim jsonData As String
Dim socket1 As New HTTPSecureSocket
jsonData = socket1.Get("https://pro-api..." // api key not included in example
Also, when I put the https URL into my browser with the full parameter list and my API key, and the data is retrieved and displayed fine, (in my browser).
During testing, I set up Listbox with test data and used that, so as not to run up the meter on my API key. When I load this test data from my listbox text, all is well. But then as soon as I try to use the socket1.get(“http://…”) function, I get this exception error. Then I tried pasting in the new data from my browser, into the listbox as test data, and that works fine too. So… I’ve narrowed this down to something about the HTTPSecureSocket function.
I haven’t touched this code in months. Any ideas where I might look next??
Currently using Windows 2019r1.1. Also tried 2019r1.