Can someone share what I'm missing? The workaround...
# suitecommerce
c
Can someone share what I'm missing? The workaround shared by Joaquin doesn't seem to work for 2018.2 theme dev tools? index.js
Copy code
OAuth1.prototype._step3 = function (account, token, verifier, secret) {
        var self = this;
        return new Promise(function (resolve) {
            var params = { account: account, token: token, verifier: verifier, secret: secret };
            resolve(self._baseStep("" + (self.vm ? '' : account.replace('_','-')) + self.urls.step3, params));
        });
    };
net.js
Copy code
,   authorize: function(deploy, cb) {
        oauth1
            .issueToken(deploy.info.authID)
            .then(({ account }) => {
                deploy.info.account = account;
                if (args.vm) {
                    deploy.info.hostname = args.vm.replace(/https?:\/\//, '');
                } else {
                    const molecule = args.m ? `${args.m}.` : '';
                    deploy.info.hostname = `${account.replace('_','-')}.restlets.api.${molecule}<http://netsuite.com|netsuite.com>`;
                }

                log(
                    `Using token ${c.magenta(deploy.info.authID)} - Account ${c.magenta(
                        account
                    )}, run with --to to change it`
                );
                cb(null, deploy);
            });
	}
Also tried to use the workaround as is, and does not seem to work so I tried to tweak it a bit to no avail.
k
From what I have experienced.. you should just upgrade your dev tools.
c
@Kearobi Thanks, that's what I figured out as well, but won't that be an issue if let's say I'm using 2018.2? or an older version of SCA?
k
As far as I know the dev tools are backwards compatible. Last time I did this (SCA 2019.2 - SCEM 2018.2.1) I upgraded to SCEM 2020.2.1 and also Node to 12.x to support TBA. That all required a fresh NPM install, but no patch required.
c
That's weird because I found a note in SuiteAnswers saying that for 2018.2, you must strictly use the 2018.2 dev tools. Anyway, good to hear thank you!
👍 1
f