Hey,
When I try to add a new app from the developer portal and select a product, I get the following error:
Any idea what's going on?
Saving app testapp for user xxxx generated an Apigee\Exceptions\ResponseException with a code of 400 when accessing URI http://xxxxxxxx:8080/v1/o/glic/developers/xxxx@gmail.com/apps. Details as follows: Array
(
[request_headers] => POST /v1/o/glic/developers/xxxxx@gmail.com/apps HTTP/1.1
Host: xxxxxxxxa:8080
accept: application/json; charset=utf-8
Content-Type: application/json; charset=utf-8
Content-Length: 358
User-Agent: DevPortal/4.17.01.00 Guzzle/3.9.3 curl/7.19.7 PHP/7.0.14
Authorization: Basic [**masked**]
Referer: http://xxxx/user/4/apps/add
[response_headers] => HTTP/1.1 400 Bad Request
X-Apigee.fault-code: keymanagement.service.apiproducts_invalid
Content-Type: application/json
Date: Tue, 01 Aug 2017 18:40:29 GMT
Content-Length: 129
[request_body] => {"accessType":"read","name":"testapp","callbackUrl":"","attributes":[{"name":"DisplayName","value":"testapp"},{"name":"lastModified","value":"2017-08-01 18:40 PM"},{"name":"lastModifier","value":"zxczxczx@gmail.com"},{"name":"creationDate","value":"2017-08-01 18:40 PM"}],"apiProducts":["PRODUCT NAME "]}
[request_type] => Array
(
[Guzzle\Common\HasDispatcherInterface] => Guzzle\Common\HasDispatcherInterface
[Guzzle\Http\Message\RequestInterface] => Guzzle\Http\Message\RequestInterface
[Guzzle\Http\Message\MessageInterface] => Guzzle\Http\Message\MessageInterface
[Guzzle\Http\Message\EntityEnclosingRequestInterface] => Guzzle\Http\Message\EntityEnclosingRequestInterface
)
[message] => One or more ApiProduct is invalid
)
Solved! Go to Solution.
@nitin.kotian The problem you have reported above is a known issue on 4.17.01 version and has been since fixed (DEVSOL-2371). You can try updating the rpm by running the following command:
apigee-service apigee-drupal-devportal update
Or you can manually apply the following change:
1. Edit the file : /opt/apigee/apigee-drupal-devportal-4.17.01.00-0.0.82/modules/custom/devconnect/devconnect_developer_apps/devconnect_developer_apps.module and change the following line:
api_product->name = $row->name;
To
api_product->name = trim($row->name);
2. Refresh "create app" page and then attempt to create the app.
Let us know if this helps.
@nitin.kotian The problem you have reported above is a known issue on 4.17.01 version and has been since fixed (DEVSOL-2371). You can try updating the rpm by running the following command:
apigee-service apigee-drupal-devportal update
Or you can manually apply the following change:
1. Edit the file : /opt/apigee/apigee-drupal-devportal-4.17.01.00-0.0.82/modules/custom/devconnect/devconnect_developer_apps/devconnect_developer_apps.module and change the following line:
api_product->name = $row->name;
To
api_product->name = trim($row->name);
2. Refresh "create app" page and then attempt to create the app.
Let us know if this helps.
Yes, this fixed the issue. Thanks @Arun Kumar