Lotusscript NotesHTTPRequest问题 [英] Lotusscript NotesHTTPRequest Issue
本文介绍了Lotusscript NotesHTTPRequest问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用LotusScript(Notes客户端版本10.0.1)中的新增Rest功能来从Google检索地址信息.不幸的是,尝试获取响应时出现错误.如果在浏览器中尝试相同的URL,则不会出现任何错误.没有配置代理.
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.
这是一些示例代码
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:
方法CoerceString中的类型不匹配:未知,预期未知
Type mismatch in method CoerceString: Unknown found, Unknown expected
推荐答案
查看全文