Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Operation requires API v3.1, which is not available from this host #145

Closed
cathymathews-pie opened this issue Oct 27, 2023 · 5 comments

Comments

@cathymathews-pie
Copy link

I'm trying to download content from our instance, and initially, I was getting authentication errors. I uninstalled the looker-deployer package and reinstalled it, and now I get this error:

ERROR: Operation requires API v3.1, which is not available from this host

Is there an API 4.0 version available? I tried to search the code for the api reference, but I couldn't find anything, maybe it's in the gazer project? I didn't manually install gazer, is there a way to update that, if the API is updated there?

What's the best way to proceed on API 4.0 so I can download content from our Looker instance? Thanks!

@cathymathews-pie
Copy link
Author

Hm, I see the API 4.0 in get_client.py, so it's something on my system. But I'm pretty sure Looker Deployer and Looker SDK are updated, I did a force reinstall, and these match the current packages on PyPI:

Requirement already satisfied: looker-deployer in /Users/..../site-packages (0.3.11)
Requirement already satisfied: looker-sdk>=21.18.0 in /Users/..../site-packages (from looker-deployer) (23.16.0)

@vaibhavyadnik
Copy link

Hi @cathymathews-pie, I am also facing same issue. Did you get any solution on it ? Could you please help me if you found any solution ?
Thanking you in advance

@cathymathews-pie
Copy link
Author

@vaibhavyadnik , no, I did not find a solution. I tried recreating my local virtual environment, uninstalling and reinstalling the Looker API and Looker Deployer packages, and nothing worked. I ended up using the Looker API explorer to download content from an environment as a backup, and we're recreating only critical content on the new one through the Looker API explorer. Definitely not ideal, but I didn't have the time to spend trying to figure out what's going on with the Looker Deployer.

@k7ragav
Copy link

k7ragav commented Dec 4, 2023

@cathymathews-pie Think you might need the latest version of gazer as well. I noticed that and I am currently in the process of getting my gazer package updated. You could give that a try and see.
I think this was the version where they started making changes to accomadate API v4

@cathymathews-pie
Copy link
Author

Thanks, @k7ragav! I had to install chruby to get the updated gazer gem, but that worked! 🎉
(This is the method I used if anyone else needs to do this too.)

I am able to download content using ldeploy again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants