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:
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[1;33;40m[1m[warning][0m
STDERR> use "continue 2"? search_api.module:1437
STDERR> Could not login with user ID 1. [31;40m[1m[error][0m
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[1;33;40m[1m[warning][0m
STDERR> use "continue 2"? search_api.module:1437
STDERR> 'all' cache was cleared. [1;32;40m[1m[success][0m
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[1;33;40m[1m[warning][0m
STDERR> use "continue 2"? search_api.module:1437
STDERR> "continue" targeting switch is equivalent to "break". Did you mean to[1;33;40m[1m[warning][0m
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[1;33;40m[1m[warning][0m
STDERR> use "continue 2"? search_api.module:1437
STDERR> You are not on Pantheon! Skipping site-status healthcheck. [1;33;40m[1m[warning][0m
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):[1;33;40m[1m[warning][0m
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[1;33;40m[1m[warning][0m
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:388[1;33;40m[1m[warning][0m
STDERR> array_keys() expects parameter 1 to be array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:140
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:153
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:153
STDERR> Invalid argument supplied for foreach() node.module:3257 [1;33;40m[1m[warning][0m
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:175[1;33;40m[1m[warning][0m
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:388[1;33;40m[1m[warning][0m
STDERR> array_keys() expects parameter 1 to be array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:140
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:153
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:153
STDERR> Invalid argument supplied for foreach() node.module:3429 [1;33;40m[1m[warning][0m
STDERR> WD cron: Apigee\Exceptions\ParameterException: Cannot load a model [31;40m[1m[error][0m
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[1;33;40m[1m[warning][0m
STDERR> array_flip(): Can only flip STRING and INTEGER values! entity.inc:388[1;33;40m[1m[warning][0m
STDERR> array_keys() expects parameter 1 to be array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:140
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:153
STDERR> array_intersect(): Expected parameter 2 to be an array, null given [1;33;40m[1m[warning][0m
STDERR> dp_rbac.module:153
STDERR> Invalid argument supplied for foreach() node.module:3429 [1;33;40m[1m[warning][0m
STDERR> WD cron: Apigee\Exceptions\ParameterException: Cannot load a model [31;40m[1m[error][0m
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).
......
.......
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |