I'm trying to use the new Rest features in LotusScript (Notes Client Release 10.0.1) to retrieve address information from Google. Unfortunately, I get an error when trying to get a response. If I try the same url in the browser, I get no errors. There is no proxy configured.
Here's some sample code
Dim Session As New NotesSession
Dim ret As String
Dim URL As String
Dim headers As Variant
Dim webRequest As NotesHTTPRequest
Set webRequest = session.createhttprequest()
url = "https://maps.googleapis.com/maps/api/geocode/json?address=Antwerp&<my Google API key>"
ret = webrequest.Get(URL)
When I run this code in an agent, I get the following error on the last line:
Type mismatch in method CoerceString: Unknown found, Unknown expected
Return value Variant Returns Variant content which contains JSON string.
– Torsten Link