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

Deadline VersionQuery fails with poor error message #261

Closed
ddneilson opened this issue Dec 8, 2020 · 0 comments · Fixed by #262
Closed

Deadline VersionQuery fails with poor error message #261

ddneilson opened this issue Dec 8, 2020 · 0 comments · Fixed by #262
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@ddneilson
Copy link
Contributor

When using the VersionQuery construct to query for a version of Deadline that does not exist, then the error message that you get does not clearly indicate what the problem is.

Reproduction Steps

Either VersionQuery with a non-existent Deadline version (ex: 10.1.99), or

  1. In the RFDK repository, modify scripts/getSupportedDeadlineVersion.ts to add versionString: "10.1.99" to the props of the call to getVersionUris
  2. From the jsii/superchain docker container in the root directory of the RFDK repo, run: node ./scripts/getSupportedDeadlineVersions.ts

Error Log

When using the VersionQuery:

Failed to create resource. Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at VersionProvider.getRequestedUriVersion (/var/task/lib/version-provider/version-provider.js:150:46)
at VersionProvider.getUrisForPlatform (/var/task/lib/version-provider/version-provider.js:117:21)
at VersionProvider.getVersionUris (/var/task/lib/version-provider/version-provider.js:44:40)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async VersionProviderResource.doCreate (/var/task/version-provider/handler.js:30:47)
at async VersionProviderResource.handler (/var/task/lib/custom-resource/simple-resource.js:41:27)

When using getSupportedDeadlineVersion.ts:

ERROR - Cannot convert undefined or null to object

Environment

  • CDK CLI Version : 1.75.0
  • CDK Framework Version: 1.75.0
  • RFDK Version: 0.21.0
  • Deadline Version: 10.1.11
  • Node.js Version: N/A
  • OS : Linux
  • Language (Version): all

This is 🐛 Bug Report

@ddneilson ddneilson added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant