-
Notifications
You must be signed in to change notification settings - Fork 66
WIT Deployments API fails with 401 to /api/user/services #4631
Comments
related to #4621 |
@tinakurian Could you please investigate and see if you can catch something ? As a starting point, setting up everything locally might be hard. However, verify if the token is being passed on to the /api/user/services call. |
I can confirm that it is not in the UI as I get no error when I point the UI at the prod server. |
The failure is reproducible only on prod-preview. The deployments API works fine on prod. |
The request being passed on from the WIT Deployments API to WIT user/services API doesn't pass on the Authorization header.
|
I tried to reproduce the error locally but the header was correctly passed to the |
Interestingly I can no longer reproduce the issue.
UPDATE - I couldn't reproduce the issue because we moved back 2 versions of core on prod-preview. The latest core might still have this issue. |
I think this issue has to do with a difference in GoLang versions |
With zero code changes in the WIT deployments API , the above golang version changes is our prime suspect. The specific code here makes a call from WIT to another WIT API using the goa WIT client, and in the process doesn't pass headers properly causing a 401. This code needs to be refactored : WIT needs to call Tenant service instead of WIT --> WIT --> Tenant. |
Here's what we are gonna do next:
|
Since when is Go 1.11 available in CentOS or RHEL? |
See Shoubhik link #4618 |
Here's what we'll be doing to investigate the failure. What we know till now
What we are going to do
cc @corinnekrych @sbose78 |
👍 CC @ppitonak |
fails with
https://github.com/fabric8-services/fabric8-wit/blob/master/controller/deployments_osioclient.go#L122
Note, call to wit/api/user/services
works perfectly.
The text was updated successfully, but these errors were encountered: