1

Below is my code:

$method  = "accounts.getJWTPublicKey";

$request = new GSRequest($apiKey, $secret, $method, '', true, $userkey);

$request->setAPIDomain("eu1.gigya.com");

$response = $request->send();

When it reached the send function, the error 500000 is displayed with the message

Could not connect to host.

Can't really find any solution to this on the internet. Some proposed solution that I have found on gigya was maybe I should:

  • Use another Certificate - which can't be the problem because it works on my local and another server on which I was testing.
  • A network misconfiguration! Can't find which misconfiguration might have caused this if any.

Had someone been through this and solved this issue?

I am using the PHP SDK given by gigya to communicate with gigya from drupal.

4

2 回答 2

1

他们终于解决了这个问题。错误不是来自 gigya,而是来自我们的服务器。这是一个防火墙问题。

于 2017-11-23T09:04:29.410 回答
0

accounts.getJWTPublicKey 是 Gigya 唯一可公开访问的 API 之一。它不需要与安全 API 相同的授权参数。您应该能够仅使用站点的 API 密钥直接访问它,例如:

https://accounts.eu1.gigya.com/accounts.getJWTPublicKey?apiKey=<API_KEY>

我刚刚确认这适用于美国数据中心,但我目前没有要检查的欧盟 apikey。让我知道以这种方式访问​​欧盟数据中心是否仍有问题。

开发者指南

11 月 19 日更新

我刚刚有机会一起查看您的代码和 SDK。如果您包含的示例是整个请求,则缺少目标站点的 apiKey 参数。完整的请求应如下所示:

$request = new GSRequest($apiKey, $secret, $method, null, true, $userkey);

$request->setAPIDomain("eu1.gigya.com");

$request->setParam("apiKey", "THE_API_KEY_OF_THE_TARGET_SITE"); //This is missing from your example

$response = $request->send();
于 2017-11-17T14:06:57.543 回答