Marvin
03/05/2024, 7:28 AMgulp theme:deploy --to --account 229676-sb3-rp
it correctly sends me to the browser to accept, but afterwards comes back with this error.
[15:19:49] Continue the authentication process in the prompted browser.
(node:12734) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND 229676-sb3_rp.restlets.api.netsuite.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26)
at GetAddrInfoReqWrap.callbackTrampoline (internal/async_hooks.js:130:17)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:12734) 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>). (rejection id: 1)
(node:12734) [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.
[15:20:00] The following tasks did not complete: theme:deploy, startDeploy
[15:20:00] Did you forget to signal async completion?
It seems to be improperly formatting the url to <http://229676-sb3_rp.restlets.api.netsuite.com|229676-sb3_rp.restlets.api.netsuite.com>
which doesn't have proper DNS setup and instead based on my DNS test should be <http://229676-sb3-rp.restlets.api.netsuite.com|229676-sb3-rp.restlets.api.netsuite.com>
notice the difference between the underscore and dash before rp
.
I tried to instead setup directly inside .nstba
with:
"SITE_NAME": {
"token": "xxxx",
"secret": "xxxx",
"account": "229676-sb3-rp"
}
But it now I get the error that I usually get when my .env
file has the wrong credentials in it, but I have triple checked them at this point.
[15:27:20] 'startDeploy' errored after 11 s
[15:27:20] Error in task gulp theme:deploy
Error Message
Unexpected Error
[15:27:20] 'theme:deploy' errored after 25 s
Anybody have advice on how to resolve?Steve Goldberg
03/05/2024, 10:03 AMMarvin
03/05/2024, 10:14 AM229676-sb3-rp
Steve Goldberg
03/05/2024, 11:21 AMMarvin
03/06/2024, 5:50 AMns_npm_repository/oauth1/index.js
from authToken.account = authToken.account.replace('-', '_');
to authToken.account = authToken.account.replace(/-/g, '_');
from sortedHeaders.push({ name: 'realm', value: account.replace('-', '_') });
to sortedHeaders.push({ name: 'realm', value: account.replace(/-/g, '_') });
from company.replace('_', '-'),
to company.replace(/_/g, '-')
Steve Goldberg
03/06/2024, 10:26 AMMarvin
03/06/2024, 3:39 PM