休息资源 - 其他标题不起作用 [英] Rest Resource - Additional Headers not Working

查看:68
本文介绍了休息资源 - 其他标题不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

晚安,

目前我们有一个HTTP资源,我们用它来提取一些API数据,我们在附加标题部分下列出了一个API密钥。  ;这已经成功运行了几周,但是我们想设置一个REST资源来获得分页功能的
优势。

Currently we have an HTTP resource that we are using to pull in some API data and we have an API key listed under the additional headers section.  This has been running successfully for a few weeks, but we would like to setup a REST resource to take advantage of the pagination features.

我们已经成功设置了REST连接器和测试连接成功。

We have successfully setup the REST connector and the test connection is successful.

然后在设置REST资源时,我们选择链接服务并再次成功测试。 当我们在附加标题中添加API密钥时,预览数据功能会失败,并显示"未知错误" 

Then when setting up the REST resource, we select the linked service and again it tests successfully.  When we add the API key in the additional headers, the preview data function fails with an "Unknown Error" 

我知道API密钥有效(因为它仍然在HTTP资源),但它不会在REST资源上运行。 我们已经尝试了各种组合来使其工作,它仍然无法工作。

I know the API key is valid (since its still running on the HTTP resource), but it won't run on the REST resource.  We have tried various combinations to get it to work and it still will not work.

我们甚至尝试使用复制数据向导,但它不会显示模式映射。 它说"列映射没有初始化"

We even tried using the Copy data wizard, but it won't bring up the schema mapping.  It says "column mapping not initialized"

我们已经比较了相关的JSON代码和API-key标题看起来一样,我甚至试图使REST与HTTP密钥匹配,但是那也不起作用。

We have compared the relevant JSON code and the API-key headers look the same, I even tried to make the REST match the HTTP key, but that didn't work either.

还有其他人遇到过这个问题还是有任何建议?

Has anyone else ran into this problem or have any suggestions?

谢谢!

推荐答案

您好SRoberson00并感谢您的提问。



您使用的是Web活动还是Lookup活动?
$
目前"查找活动目前仅支持Azure Cosmos DB(MongoDB API),MongoDB和Rest连接器的有限功能。 它将在未来得到改进。"
$
Hello SRoberson00 and thank you for your question.

Are you using a Web activity, or Lookup activity?
Currently "Lookup activity currently only supports limited functionality for Azure Cosmos DB (MongoDB API), MongoDB and Rest connector.  It will be improved in the future."


这篇关于休息资源 - 其他标题不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆