GithubHelp home page GithubHelp logo

Comments (5)

benpoliquin avatar benpoliquin commented on September 6, 2024

I think the space name might need to be a pointer reference before it calls gsub but I am unable to test.

from gzr.

sabarber-looker avatar sabarber-looker commented on September 6, 2024

It looks like:

path = Pathname.new(space.name.gsub('/',"\u{2215}"))

on line 77 (69 if excluding empty lines) of export.rb is the culprit here. In this case, I believe the spaces of unregistered users (e.g. have been invited to your looker instance but have never logged in and thus not set a first and last name) have a nil name, and this line does not have error handling for the nil case.

I have tested a hack which is to skip these with a conditional block on lines 77-113 with

if space.name
..
end

A permanent fix would perhaps notify with an error message or other notation like "Skipping space 36 from unregistered user."

from gzr.

sabarber-looker avatar sabarber-looker commented on September 6, 2024

And one more nugget of info, it looks like the act of querying the user's space with the API before they are registered is what creates the problem is the first place. To reproduce:
(1) Create new user
(2) gzr space ls 2
and note that the new user is not present in the list.
(3) gzr user ls
and note new user's space ID
(4) gzr space ls <num>
where is the space ID for the new user (e.g. 7)
(5) gzr space ls 2
and note that the new user is now present, meaning gazer will throw the nil error on gzr space export 2 until the user is registered.

from gzr.

drstrangelooker avatar drstrangelooker commented on September 6, 2024

Should be fixed in v0.2.23. Please reopen if not fixed.

from gzr.

benpoliquin avatar benpoliquin commented on September 6, 2024

Thank you for fixing this! @deangelo-llooker 🥇

from gzr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.