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

invalid json in swagger_to_sdk_config.json #12080

Closed
ctaggart opened this issue Jun 16, 2020 · 1 comment
Closed

invalid json in swagger_to_sdk_config.json #12080

ctaggart opened this issue Jun 16, 2020 · 1 comment
Labels
needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team.

Comments

@ctaggart
Copy link

Python SDK builds are failing for my new pull request at Azure/azure-rest-api-specs#9859. The error is:

2020-06-16T23:06:12.433Z: Getting swagger_to_sdk_config.json file from "Azure/azure-sdk-for-python/master/swagger_to_sdk_config.json"...
[
  '##[error]2020-06-16T23:06:12.994Z: Failed to run SDK Automation: SyntaxError: Unexpected token } in JSON at position 382, {} '
]
SyntaxError: Unexpected token } in JSON at position 382
JSON.parse (<anonymous>)
    at SpecificationPullRequestGeneration.getSwaggerToSDKFileContent (/z/lib/specificationPullRequestGeneration.js:216:31)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async SpecificationPullRequestGeneration.getSDKRepository (/z/lib/specificationPullRequestGeneration.js:139:44)
    at async SpecificationPullRequestGeneration.addReadmeMdFileToGenerateForSDKRepository (/z/lib/specificationPullRequestGeneration.js:183:31)
    at async SpecificationPullRequest.addReadmeMdFilesToGenerateToSDKRepositories (/z/lib/specificationPullRequest.js:265:21)
    at async SpecificationPullRequest.populateSDKRepositoryReadmeMdFilesToGenerate (/z/lib/specificationPullRequest.js:81:9)
    at async SpecificationPullRequest.generateModifiedServices (/z/lib/specificationPullRequest.js:49:9)
    at async /z/lib/sdkAutomation.js:74:13
    at async executeAndLog (/z/lib/sdkAutomation.js:305:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! [email protected] start: `node lib/cli/cli.js`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I think it is because #11654 committed invalid json 18 hours ago:
https://github.com/Azure/azure-sdk-for-python/pull/11654/files#diff-40123192e960d9409ef3d787d75962cdR11

cc @NullMDR @zikalino

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 16, 2020
@PhoenixHe-NV
Copy link
Contributor

Already fixed. Thanks for raising up this issue.

openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this issue Dec 15, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants