oracle / netsuite-suitecloud-sdk

SuiteCloud Software Development Kit (SuiteCloud SDK) are the set of tools that allow you to customize accounts and create SuiteApps through SuiteCloud Development Framework (SDF).
https://www.netsuite.com/
Universal Permissive License v1.0
201 stars 62 forks source link

There was an error when downloading SuiteCloud SDK dependency from https://system.netsuite.com/download/suitecloud-sdk/23.2/cli-2023.2.0.jar #770

Closed ppk2017 closed 8 months ago

ppk2017 commented 10 months ago

Select the SuiteCloud tool where you encountered the issue

SuiteCloud CLI

Version of the SuiteCloud Tool

0.0.0

Operating system

macOS vertura 13.5.1

Node Version / VSCode Version

v21.1.0

JAVA Version

17.0.4.1

Bug description

No matter run command sudo npm install -g @oracle/suitecloud-clior 'sudo npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli' , always throws up error:

npm ERR! minTimeout is greater than maxTimeout

npm ERR! A complete log of this run can be found in: /Users/michaelbao/.npm/_logs/2023-11-10T17_20_17_349Z-debug-0.log
michaelbao@michaelbao-mac ~ % sudo npm config set fetch-retry-maxtimeout 600000                      
michaelbao@michaelbao-mac ~ % sudo npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli

npm ERR! code 255
npm ERR! path /usr/local/lib/node_modules/@oracle/suitecloud-cli
npm ERR! command failed
npm ERR! command sh -c node postinstall.js
npm ERR! There was an error when downloading SuiteCloud SDK dependency from https://system.netsuite.com/download/suitecloud-sdk/23.2/cli-2023.2.0.jar
npm ERR! Error: GET request timeout.

Steps To Reproduce

  1. open terminal
  2. run 'sudo npm install -g @oracle/suitecloud-cli'

Actual Output

npm ERR! minTimeout is greater than maxTimeout

npm ERR! A complete log of this run can be found in: /Users/michaelbao/.npm/_logs/2023-11-10T17_20_17_349Z-debug-0.log michaelbao@michaelbao-mac ~ % sudo npm config set fetch-retry-maxtimeout 600000
michaelbao@michaelbao-mac ~ % sudo npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli

npm ERR! code 255 npm ERR! path /usr/local/lib/node_modules/@oracle/suitecloud-cli npm ERR! command failed npm ERR! command sh -c node postinstall.js npm ERR! There was an error when downloading SuiteCloud SDK dependency from https://system.netsuite.com/download/suitecloud-sdk/23.2/cli-2023.2.0.jar npm ERR! Error: GET request timeout.

Expected Output

successful result

Anything else?

no

davidecorreu commented 10 months ago

Hi @ppk2017 ,

Is it possible that you are behind a proxy? If so, you'll need to setup the SUITECLOUD_PROXY environment variable.

Extract from: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_155929845760.html#Related-Topics

 Note:

To configure a proxy server, create the SUITECLOUD_PROXY environment variable.
To be valid, the variable value must include an http or https protocol, a hostname, and a port number,
for example: http://proxyurl:proxyport. After creating the variable, restart the console. 

I have also noticed that your node version is v21.1.0, and we recommend using 18.14.2 LTS.

Please don't use sudo to install the SuiteCloud CLI as it could lead to other future problems as described on this other issue https://github.com/oracle/netsuite-suitecloud-sdk/issues/662#issuecomment-1686329882

alisyed-19 commented 9 months ago

@ppk2017 were you able to try the things mentioned in previous comment?

lfpvillegas commented 8 months ago

Closed due to inactivity. Please open the ticket again if you still experience the same issue