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

Set property namespace in openwhisk wsk cli #351

Open
Areej-Fatima opened this issue Feb 22, 2023 · 1 comment
Open

Set property namespace in openwhisk wsk cli #351

Areej-Fatima opened this issue Feb 22, 2023 · 1 comment

Comments

@Areej-Fatima
Copy link

I'm trying to create namespace in openwhisk along with auth and api host, but it's not working for me. The official documentation says to use this command. While -i is used to bypass the certificates.

wsk property -i set \
  --apihost 'http://localhost:3233' \
  --auth '23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP' \
--namespace 'guest'

It gives the error unknown flag: --namespace Next, I use it like this, but its still not setting the namespace.

wsk property -i set \
  --apihost 'http://localhost:3233' \
  --auth '23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP' \
namespace guest

It throws this error. error: Unable to obtain API build information: The connection failed, or timed out. (HTTP status code 404) How to fix this?

@style95
Copy link
Member

style95 commented Feb 24, 2023

If you provide the auth flag, you don't need to provide the namespace flag as the system can infer the namespace using the auth key.

In this sense, the namespace field is deprecated, try again after removing the namespace flag.

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

2 participants