Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[MONITOR-SPEC-PR] JS SDK Automation: Automation Script Failure maybe due to deprecated module punycode #9979

Open
jianingwang123 opened this issue Mar 5, 2025 · 1 comment

Comments

@jianingwang123
Copy link

Description:
Command sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json failed to execute, maybe due to the punycode module is deprecated.
The detailed error message is as follows:

09:38:42.447 command 	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
09:38:42.447 info 	Config: {"stderr":{"showInComment":".*ERROR.*"},"envs":[],"exitCode":{"showInComment":true,"result":"error"}}
09:38:43.536 cmderr 	[automation_generate.sh] (node:40626) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
09:38:43.536 cmderr 	[automation_generate.sh] (Use `node --trace-deprecation ...` to show where the warning was created)
09:38:43.551 cmdout 	[automation_generate.sh]     at getGeneratedPackageDirectory (/opt/hostedtoolcache/node/22.13.0/x64/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/common/utils.js:162:15)
09:38:43.552 cmdout 	[automation_generate.sh]     at async generateRLCInPipeline (/opt/hostedtoolcache/node/22.13.0/x64/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/llc/generateRLCInPipeline/generateRLCInPipeline.js:30:37)
09:38:43.552 cmdout 	[automation_generate.sh]     at async automationGenerateInPipeline (/opt/hostedtoolcache/node/22.13.0/x64/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/autoGenerateInPipeline.js:38:17).
09:38:43.569 error C 	Script return with result [failed] code [1] signal [null] cwd [/mnt/vss/_work/1/s/azure-sdk-for-js]: sh .scripts/automation_generate.sh

spec that have this issue:
cognitiveservices-anomalydetector

@jianingwang123
Copy link
Author

This looks like there is something wrong with the tspconfig.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant