You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2018. It is now read-only.
I'm using the ridley gem to find a data-bag on a chef server and receive the following response:
Ridley::Errors::HTTPMovedPermanently:
<title>301 Moved Permanently</title>
301 Moved Permanently
nginx/1.4.4
After instantiating the Ridley client and creating a new object, this is how I try to find a databag named aws-admin:-
data = ridley.data_bag.find("aws-admin").
There is nothing in the response that I receive that gives me any information about a new location. (I have confirmed that this databag does exist on the chef server).
Can anyone give me some advice on how to solve this problem?
Thanks
The text was updated successfully, but these errors were encountered:
@trekr5 looks like we're not leveraging any middleware for following redirects. You can temporarily fix this in your NGINX config to avoid redirecting requests to Chef.
I think I might be running into this same issue though the embedded ridley/faraday calls in a Vagrant run. I'm not very familiar with nginx configurations -- is there anything you'd recommend changing in the standard embedded nginx config that's shipping with Chef?
lamont-granquist
changed the title
Attempting to find a data_bag on a chef server using ridley and getting a 301 error
Ridley does not use Faraday middleware for following redirects
Oct 19, 2016
Hi,
I'm using the ridley gem to find a data-bag on a chef server and receive the following response:
Ridley::Errors::HTTPMovedPermanently:
<title>301 Moved Permanently</title>301 Moved Permanently
nginx/1.4.4
After instantiating the Ridley client and creating a new object, this is how I try to find a databag named aws-admin:-
data = ridley.data_bag.find("aws-admin").
There is nothing in the response that I receive that gives me any information about a new location. (I have confirmed that this databag does exist on the chef server).
Can anyone give me some advice on how to solve this problem?
Thanks
The text was updated successfully, but these errors were encountered: