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

Using deployer lib against vanilla OW has issues pulling runtimes.json #13

Open
jthomas opened this issue Jul 22, 2021 · 0 comments
Open

Comments

@jthomas
Copy link
Contributor

jthomas commented Jul 22, 2021

From @rabbah

 Error: Failed to retrieve runtimes.json from platform host.: Cannot convert undefined or null to object
nim:deployer:runtimes loaded runtimes json: {"api_version":"1.0.0","api_version_path":"v1","build":"2021-06-14T19:39:58-0400","buildno":"0cdfdb3","description":"OpenWhisk API","swagger_paths":{"api-docs":"/api-docs","ui":"/docs"}} +18ms
  nim:base Improving msg: Failed to retrieve runtimes.json from platform host., err: TypeError: Cannot convert undefined or null to object
  nim:base     at Function.values (<anonymous>)
  nim:base     at isValidRuntimesJson (/Users/rabbah/.node/lib/node_modules/nimbella-cli/node_modules/@nimbella/nimbella-deployer/lib/index.js:2727:17)
  nim:base     at load (/Users/rabbah/.node/lib/node_modules/nimbella-cli/node_modules/@nimbella/nimbella-deployer/lib/index.js:2731:8)

oh i see what the potential issue is, /api/v1 from standalone openwhisk != nimbella’s /api/v1
you’d have to query / on standalone / default openwhisk instead
but looks like it is a bug anyway, the code assumes a particular respose and should handle the failure gracefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant