Error in smartdocs documentation publishing

We are using the following smartdocs module, to publish swagger jsons on Developer Portal smartdocs module:

https://github.com/apigeecs/smartdocs_service

We have 15 smartdocs models and it usually takes ~1 hour to publish these using the above smartdocs service.

The following work fine:

  • model creation
  • importing json to models
  • rest to render models (having the output as --> ["Items have been added to the queue for rendering"])

But intermittently, we see that these fail during rendering (while processing the rendering queue), with following errors when we try using the following command:

drush queue-run smartdocs_service_queue

We are getting repetitive errors like the following:

STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[warning]
STDERR> use "continue 2"? search_api.module:1437
STDERR> Could not login with user ID 1. [error]
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[warning]
STDERR> use "continue 2"? search_api.module:1437
STDERR> 'all' cache was cleared. [success]
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[warning]
STDERR> use "continue 2"? search_api.module:1437
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[warning]
STDERR> use "continue 2"? file.inc:193
{"STATUS":"OK","INFO":["Conceptional pages (if any) for version <em class=\"placeholder\">1.0<\/em> wiped.","Created 110 nodes."]}
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[warning]
STDERR> use "continue 2"? search_api.module:1437
STDERR> You are not on Pantheon! Skipping site-status healthcheck. [warning]
Loaded 3 api_products
Wrote 3 api_products to cache
STDERR> file_get_contents(http://default/sites/default/files/smartdocs_templates/custom_smartdocs_0.hbr):[warning]
STDERR> failed to open stream: "DrupalRemoteStreamWrapper::stream_open" call
STDERR> failed smartdocs.render.inc:135
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:175[warning]
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:388[warning]
STDERR> array_keys() expects parameter 1 to be array, null given [warning]
STDERR> dp_rbac.module:140
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [warning]
STDERR> dp_rbac.module:153
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [warning]
STDERR> dp_rbac.module:153
STDERR> Invalid argument supplied for foreach() node.module:3257 [warning]
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:175[warning]
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:388[warning]
STDERR> array_keys() expects parameter 1 to be array, null given [warning]
STDERR> dp_rbac.module:140
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [warning]
STDERR> dp_rbac.module:153
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [warning]
STDERR> dp_rbac.module:153
STDERR> Invalid argument supplied for foreach() node.module:3429 [warning]
STDERR> WD cron: Apigee\Exceptions\ParameterException: Cannot load a model [error]
STDERR> with no ID. in Apigee\SmartDocs\Model->load() (line 314 of
STDERR> /opt/apigee/apigee-drupal-7.70-0.0.112/wwwroot/profiles/apigee/libraries/mgmt-api-php-sdk/Apigee/SmartDocs/Model.php).
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:175[warning]
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:388[warning]
STDERR> array_keys() expects parameter 1 to be array, null given [warning]
STDERR> dp_rbac.module:140
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [warning]
STDERR> dp_rbac.module:153
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [warning]
STDERR> dp_rbac.module:153
STDERR> Invalid argument supplied for foreach() node.module:3429 [warning]
STDERR> WD cron: Apigee\Exceptions\ParameterException: Cannot load a model [error]
STDERR> with no ID. in Apigee\SmartDocs\Model->load() (line 314 of
STDERR> /opt/apigee/apigee-drupal-7.70-0.0.112/wwwroot/profiles/apigee/libraries/mgmt-api-php-sdk/Apigee/SmartDocs/Model.php).

......

.......

 

0 0 79
0 REPLIES 0