简体   繁体   English

无法使用 Google Data Fusion 连接到 Salesforce

[英]Can't connect to Salesforce With Google Data Fusion

Trying to configure the salesforce connector to read data from salesforce using Google Data Fusion, but can't connect to Salesforce.尝试将 salesforce 连接器配置为使用 Google Data Fusion 从 salesforce 读取数据,但无法连接到 Salesforce。

I keep getting "Connection to salesforce with plugin configurations failed" error message when hitting the "get schema" button on the connector.点击连接器上的“获取架构”按钮时,我不断收到“使用插件配置连接到 salesforce 失败”错误消息。 My guess is that this related to my salesforce connected app, but can't really tell.我的猜测是这与我的 Salesforce 连接应用程序有关,但不能确定。 Is it related to the callback URL setting in the connected app?是否与连接的应用程序中的回调 URL 设置有关? Did anyone succeed connecting to Salesforce using Data fusion?有没有人使用数据融合成功连接到 Salesforce?

It looks like the error is coming from https://github.com/data-integrations/salesforce/blob/abc563938e837b3bcfc42dbd4b26c0c6ef347451/src/main/java/io/cdap/plugin/salesforce/authenticator/Authenticator.java#L57 .看起来错误来自https://github.com/data-integrations/salesforce/blob/abc563938e837b3bcfc42dbd4b26c0c6ef347451/src/main/java/io/cdap/plugin/salesforce/authenticator/Authenticator.java#L57

Unfortunately it looks like the error message doesn't include anything from the root cause, but most likely it's failing during the oauth login, which makes a POST request to: [login url]?grant_type=password&client_id=[client id]&client_secret=[client secret]&username=[username]&password=[password]不幸的是,错误消息似乎不包含根本原因中的任何内容,但很可能在 oauth 登录期间失败,这会发出 POST 请求: [登录 url]?grant_type=password&client_id=[client id]&client_secret=[客户端密码]&用户名=[用户名]&密码=[密码]

You could try making that request manually and see if you get an error back.您可以尝试手动发出该请求,然后查看是否返回错误。

I was getting the same error, but I managed to solve it.我遇到了同样的错误,但我设法解决了它。

First things first, even though the Security Token is optional, I did not manage to make it work without it.首先,即使安全令牌是可选的,我也无法在没有它的情况下使其工作。

Apparently, depending on how your Salesforce instance is configured, if your password is mypassword, and your security token is XXXXXXXXXX, then the plugin uses mypasswordXXXXXXXXXX during the authentication.显然,根据您的 Salesforce 实例的配置方式,如果您的密码是 mypassword,并且您的安全令牌是 XXXXXXXXXX,那么插件在身份验证期间使用 mypasswordXXXXXXXXXX。

Secondly, and most important, for the login URL field, this field is the oauth2 url.其次,也是最重要的,对于登录 URL 字段,该字段是 oauth2 url。 Therefore where before I was putting https://test.salesforce.com , I had to put https://test.salesforce.com/services/oauth2/token .因此,在我放置https://test.salesforce.com之前,我不得不放置https://test.salesforce.com/services/oauth2/token With this final step, it worked.通过这最后一步,它奏效了。 Below a screenshot of the field.下面是该字段的屏幕截图。

在此处输入图片说明

Has anyone had luck connecting Salesforce with Google Cloud Data Fusion yet? 有人有幸将Salesforce与Google Cloud Data Fusion连接起来吗? I'm looking for a guide if anyone has written one out. 如果有人写过,我正在寻找指南。

I have questions like: - do I need an API user set up in Salesforce (or can I use my normal admin account) - What is the best "Call Back URL" which is asked during the installation. 我有类似的问题:-我是否需要在Salesforce中设置API用户(或者可以使用我的普通管理员帐户)-在安装过程中要求的最佳“回叫URL”是什么?

I keep getting errors: 我不断收到错误消息:

Error encountered while configuring the stage: 'Connection to salesforce with plugin configurations failed' 配置阶段时遇到错误:“使用插件配置连接到Salesforce失败”

on the cloud Fusion side when configuring the Salesforce plugin (Data Fusion Studio > Hub > Salesforce > add to the canvas > Tap to configure Salesforce > Add Authentication details > Validate) 配置Salesforce插件时在云Fusion端上(Data Fusion Studio>集线器> Salesforce>添加到画布>点击以配置Salesforce>添加身份验证详细信息>验证)

Anyone have any good insights? 有人有什么好的见解吗? Thanks! 谢谢! ~T 〜T

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM