CleverCloud / clever-tools

The official command line interface for Clever Cloud
https://www.clever-cloud.com/
Apache License 2.0
74 stars 46 forks source link

[BUG] [ERROR] Cannot read property 'slice' of null #572

Open pYassine opened 1 year ago

pYassine commented 1 year ago

For 15 days, we have been facing a problem with the CLI. When trying to deploy an app, the following message is displayed:

The CLI is installed via NPM.

  `[DEBUG] Loading app configuration from
 /Users/xxx/Documents/dev/XXXX/.clever.json [DEBUG] Load
 configuration from environment variables [DEBUG] Load configuration
 from /Users/XXXX/.config/clever-cloud/clever-tools.json [DEBUG] Get
 information for the app: app_bffa0b15-0e0f-49b4-b20b-0e31cef05b23
 [DEBUG] Load configuration from environment variables [DEBUG] Load
 configuration from
 /Users/XXXX/.config/clever-cloud/clever-tools.json [DEBUG] GET
 https://api.clever-cloud.com/v2/organisations/orga_XXXX/applications/app_XXXX
 ? undefined Remote git head commit   is
 e51944c92e80325fXXXXXXX Current deployed commit  is
 e51944c92e80325fXXXXXXX New local commit to push is
 5beaeaba81e10c292XXXXXXX (from
 refs/heads/fix-ci-deploy) [DEBUG] Load configuration from environment
 variables [DEBUG] Load configuration from
 /Users/XXXX/.config/clever-cloud/clever-tools.json [DEBUG] GET
 https://api.clever-cloud.com/v2/organisations/orga_XXXX/applications/app_XXXX/deployments
 ? {"limit":5} Pushing source code to Clever Cloud… [DEBUG] Load
 configuration from environment variables [DEBUG] Load configuration
 from /Users/XXXX/.config/clever-cloud/clever-tools.json [STACKTRACE]
 TypeError: Cannot read property 'slice' of null
     at GitPackIndex.readSlice (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:2791:35)
     at async readObjectPacked (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:2908:22)
     at async _readObject (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:2950:14)
     at async walk (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:10998:30)
     at async walk (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:11017:11)
     at async walk (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:11017:11)
     at async walk (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:11006:7)
     at async listObjects (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:11024:5)
     at async _push (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:11221:23)
     at async Object.push (/snapshot/clever-tools_2.10.1/node_modules/isomorphic-git/index.cjs:11431:12)
     at async Object.push (/snapshot/clever-tools_2.10.1/src/models/git.js:87:18)
     at async Object.deploy (/snapshot/clever-tools_2.10.1/src/commands/deploy.js:52:3) {  
 caller: 'git.push' } [/STACKTRACE]

`

hsablonniere commented 1 year ago

Hello @pYassine, can you contact our support team through the ticket center (in the web console)?

pYassine commented 1 year ago

@hsablonniere done !