SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 5 forks source link

CF html5 plugin freezes on CF Org with many services entitled #63

Closed micellius closed 8 months ago

micellius commented 8 months ago

Description

In case CF marketplace has more than 50 offerings available for current space, the CF HTML5 Plugin enters the infinite loop of requests, which leads to quota exhaustion

Environment

CLI Output

$> cf html5-list
17:29:09.398616 Running CloudFoundry html5-plugin 1.4.7
17:29:09.400247 Initializing command 'html5-list'
17:29:09.400247 Configuration file does not exist. No cache to clear
17:29:09.400247 Executing command 'html5-list': args: '[]'
17:29:09.400247 Getting context (org/space/username)
Getting list of HTML5 applications in org <ORG> / <SPACE> main as <EMAIL>...
17:29:09.401834 Getting HTML5 context
17:29:09.401834 Getting list of services
17:29:09.402365 Making request to: /v3/service_offerings?space_guids=8e5...b46
17:29:10.442120 Making request to: https://api.cf.sap.hana.ondemand.com/v3/service_offerings?page=2&per_page=50&space_guids=8e5...b46
17:29:10.614176 Making request to: https://api.cf.sap.hana.ondemand.com/v3/service_offerings?page=2&per_page=50&space_guids=8e5...b46
17:29:10.848530 Making request to: https://api.cf.sap.hana.ondemand.com/v3/service_offerings?page=2&per_page=50&space_guids=8e5...b46