Invalid token error in microgateway

Hi,

I am working on containization of microgateway. but while using curl command to check if a dummy api is working or not, getting invalid token error. But I am not using oauth tokens. But the same request working fine with other microgateways without docker.

I have also tried without apikey or invalid apikey. Those test cases are working fine where as correct apikey is giving invalid token error.

Can anyone let me know what could be the reason for this invalid token error

[root@632b8b9c7a43 cli]# curl --header "x-api-key: valid apikey" http://localhost:8000/basepath/healthcheck

{"error":"invalid_token"}


[root@632b8b9c7a43 cli]# curl --header "x-api-key: invalid-apikey" http://localhost:8000/basepath/healthcheck
{"error":"access_denied","error_description":"Unauthorized"}


[root@632b8b9c7a43 cli]# curl http://localhost:8000/basepath/healthcheck

{"error":"missing_authorization","error_description":"Missing Authorization header"}

2 3 549
3 REPLIES 3

Former Community Member
Not applicable

You are probably missing "gracePeriod" in the oauth stanza in config.yaml.

Hi Nandan,

The gracePeriod parameter is present in the config yaml file.

Former Community Member
Not applicable

Are you using this docker version?

docker pull gcr.io/apigee-microgateway/edgemicro:latest