Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

AutoRest Exception Error: Could not read 'file:///preview/2023-06-01-preview/privateLinkScopes_API.json'. at ReadThroughDataSource.readStrict #5054

Open
qinjoshua opened this issue Jan 15, 2025 · 0 comments
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@qinjoshua
Copy link
Member

I ran into this error while trying to validate the following PR:
https://github.com/Azure/azure-rest-api-specs/pull/31826/checks?check_run_id=35680843020

The full text of one of the error messages looks like this:

"tag":"[package-2023-06-01-preview](https://github.com/Azure/azure-rest-api-specs/blob/1290718c264d997f7e43745dbae1548214125eb3/specification/monitor/resource-manager/Microsoft.Insights/PrivateLinkScopes/readme.md#tag-package-2023-06-01-preview)",
"details":"stack: Error: Could not read 'file:///preview/2023-06-01-preview/privateLinkScopes_API.json'. at ReadThroughDataSource.readStrict (/home/cloudtest/.autorest/@[email protected]/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:15002:19) at loadSwaggerFile (/home/cloudtest/.autorest/@[email protected]/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:3590:18) at loadSwaggerFiles (/home/cloudtest/.autorest/@[email protected]/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:3581:29) at /home/cloudtest/.autorest/@[email protected]/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:3604:26 at ScheduleNode (/home/cloudtest/.autorest/@[email protected]/node_modules/@autorest/core/dist/src_lib_autorest-core_ts.js:1351:29)"

I've verified that the file /preview/2023-06-01-preview/privateLinkScopes_API.json does exist in my PR at the specified folder, and the error message itself is too cryptic for me to understand what specifically AutoRest is trying to do. Why does this error get generated, and what can I do to fix it?

@qinjoshua qinjoshua added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

1 participant