apache / apache/openwhisk-wskdeploy

Unable to deploy simple API with error msg_config_missing_apigw_access_token

Open
#1,037 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
75
Forks
73
PR merge metrics
No merged PRs in 30d

Description

OS: Linux Ubuntu 18.04
OpenWhisk deployed to docker using [devtools](https://github.com/apache/incubator-openwhisk-devtools/tree/master/docker-compose) compose setup

I've tried using latest and 0.9.9 version of deploy

I've created simple manifest [myservice.yaml](https://gist.github.com/huksley/efdf069e4be7551f06129cd0b7c6cefe)

- [x] Deploying without APIs - successful
- [ ] Deploying with `apis` block - error

```bash
wskdeploy -m myservice.yaml -s -v
Info: deploy using deployment file []...

Info: Configuration:
> ApiHost: []
> Auth: []
> Namespace: []
> ApiVersion: []
> CfgFile: [/home/user/.wskprops]
> CliVersion: [0.9.9]
> ProjectPath: [.]
> DeploymentPath: []
> ManifestPath: [myservice.yaml]
> Preview: [false]
> Strict: [true]
> Key: []
> Cert: []
> Managed: [false]
> ProjectName: []
> ApigwAccessToken: []
> Verbose: [true]
> Trace: [false]
> Sync: [false]
> Report: [false]
> Param: [[]]
> ParamFile: []

Info: The API host is [https://10.6.3.137], from .wskprops.
Info: The auth key is set, from .wskprops.
Info: The namespace is [_], from .wskprops.
Info: Unmarshal OpenWhisk runtimes from local values.
Warning: open /home/travis/gopath/src/github.com/apache/incubator-openwhisk-wskdeploy/runtimes/runtimes.json: no such file or directory
Warning: [testapi1] is marked as public in manifest file, it will be visible and can be accessed by anyone
Error: manifestreader.go [113]: [ERROR_YAML_FILE_FORMAT_ERROR]: File: [myservice.yaml]:
==> manifest_parser.go [1154]: [ERROR_WHISK_CLIENT_INVALID_CONFIG]: msg_config_missing_apigw_access_token
```

```bash
> user@machine:~$ cat .wskprops
AUTH=deadbeef:deadbeef
APIHOST=https://10.6.3.137
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.