rackspace / gophercloud

A Go SDK for OpenStack. IN FEATURE FREEZE. See Issue #592
http://gophercloud.io
Other
456 stars 185 forks source link

endless of client call in provider client #621

Open armstrongli opened 7 years ago

armstrongli commented 7 years ago

If the server response StatusUnauthorized error every time, the iterator will exhausting all the stack until overflow.

https://github.com/rackspace/gophercloud/blob/master/provider_client.go#L207

armstrongli commented 7 years ago

Fixed in PR: https://github.com/rackspace/gophercloud/pull/622

armstrongli commented 6 years ago

After more investigation, I notice that the token got is not from client. It's from the options which parsed from the caller. The result is that the token is override by the MoreHeaders which has the old, expired token.