I am having this error when trying to fetch the ex...
# suitecommerce
b
I am having this error when trying to fetch the extensions to test the new dart library. I added the customer key and secret to the .env file.
Copy code
[13:03:04] Continue the authentication process in the prompted browser.
(node:75151) UnhandledPromiseRejectionWarning: Error: Invalid login attempt.
at OAuth1._baseStep (/Users/berenice/Documents/github/2024_1/afg-sca-ext-22/ns_npm_repository/oauth1/index.js:287:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async OAuth1.issueToken (/Users/berenice/Documents/github/2024_1/afg-sca-ext-22/ns_npm_repository/oauth1/index.js:353:38)
at async authorize (/Users/berenice/Documents/github/2024_1/afg-sca-ext-22/gulp/ns-deploy/net.js:333:24)
(Use node --trace-warnings ... to show where the warning was created)
(node:75151) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see <https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode>).. "smartCard-inline") (rejection id: 1)
(node:75151) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
s
1. Go to Setup > Integration > Manage Integrations > New 2. Create an integration record. (For more information, see Create Integration Records for Applications to Use TBA.) a. In the Name field, enter a name for the integration record. b. In the State field, select Enabled. c. Check the Token-Based Authentication box. d. Check the TBA: Authorization Flow box. e. In the Callback URL field, enter: http://localhost:7777/tba. f. Clear the Authorization Code Grant box. g. Check the User Credentials box. 3. Save the integration. Be sure to save the consumer key/secret before closing the page. 4. Copy and paste the consumer key/secret in the .env file. ALSO IMPORTANT: the key/secret information you put in the .env file must be for the integration record that you’ve just created AND NOT FOR THE ACCESS TOKEN FOR YOUR ACCOUNT. If you attempt to use your the key/secret that you have manually created through the NetSuite UI (using the Manage Access Tokens link), then this will also cause this error.
b
I will try that now. Thank you!
@Steve Goldberg That worked! Thank you so much!
👍🏻 1
Hi Steve, I can't run the command gulp check-dart-sass I am getting this: Using gulp distro. [094540] Using gulpfile ~/Documents/github/2024_1/afg-sca-ext-22/gulpfile.js [094540] Task never defined: check-dart-sass [094540] To list available tasks, try running: gulp --tasks Please advice.
s
🙃
I’m pretty sure we never got around to actually implementing / fixing that command unfortunately, so you need to use the --dart flag after your deploy command
b
When I run the command gulp extension:deploy --account 123456-sb1 --dart I get no errors but when i activate the extension i deployed i get this error:
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "78319",
  "message": "Compiler was unable to compile the given input file.",
  "id": null,
  "stack": [
    "createError(N/error)"
  ],
  "cause": {
    "message": "Compiler was unable to compile the given input file.",
    "stack": [
      "createError(N/error)",
      "map(/SuiteBundles/Bundle 500777/ExtensionMechanism.Server/CompilersMapReduce/SassCompilerMapReduce.js:160)"
    ],
    "name": "78319",
    "data": {
      "response": null,
      "notifications": [
        {
          "message": "Compilation error occured.",
          "status": "1",
          "json": "expected \"=\".",
          "file": "filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/BaseSassStyles/Sass/atoms/_purchase-controls.scss 238:65 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/BaseSassStyles/Sass/_main-atoms.scss 32:9 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/Checkout/checkout.scss 49:9 @import\nfilecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.2.0/Development/extensions/meta_checkout_2.scss 33:9 root stylesheet\n",
          "src": "filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/BaseSassStyles/Sass/atoms/_purchase-controls.scss 238:65 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/BaseSassStyles/Sass/_main-atoms.scss 32:9 @import\nfilecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/Checkout/checkout.scss 49:9 @import\nfilecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.2.0/Development/extensions/meta_checkout_2.scss 33:9 root stylesheet\n",
          "detail": "Error: expected \"=\".\n ╷\n238 │ -ms-filter: \"progid:DXImageTransform.Microsoft.Alpha\"(Opacity=0);\n │ ^\n ╵\n filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/BaseSassStyles/Sass/atoms/_purchase-controls.scss 238:65 @import\n filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/BaseSassStyles/Sass/_main-atoms.scss 32:9 @import\n filecabinet:/SuiteScripts/Deploy_Extensions/AFG/AFG_2022_2_Theme@1.0.24/Modules/Checkout/checkout.scss 49:9 @import\n filecabinet:/Web%20Site%20Hosting%20Files/Live%20Hosting%20Files/SSP%20Applications/NetSuite%20Inc.%20-%20SCA%202022.2.0/Development/extensions/meta_checkout_2.scss 33:9 root stylesheet",
          "text": "expected \"=\".",
          "severity": {
            "label": "ERROR",
            "value": 3
          }
        }
      ]
    }
  },
  "notifyOff": false,
  "userFacing": true
}
When i ran gulp theme:deploy --account 123456-sb1 --to --dart I am getting errors pointing to the /tmp folder.