GithubHelp home page GithubHelp logo

bzimmer / smugmug Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 2.59 MB

SmugMug API client written in golang with support for concurrent uploading of images.

License: MIT License

Go 100.00%
concurrency smugmug smugmug-api

smugmug's People

Contributors

bzimmer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

smugmug's Issues

missing user URI for an album panics

The album WJvpCp is owned by cmac and does not have an associated user which panics when the expansion is attempted.

~/Development/src/github.com/bzimmer/smugmug (main) > ma ls album WJvpCp                      
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x13021e9]

goroutine 1 [running]:
github.com/bzimmer/smugmug.(*AlbumService).expand(0xc000169848, 0xc000426000, 0x1359ac0)
        /Users/bzimmer/Development/pkg/mod/github.com/bzimmer/[email protected]/album.go:29 +0x29
github.com/bzimmer/smugmug.(*AlbumService).album(0xc00000e160, 0x0)
        /Users/bzimmer/Development/pkg/mod/github.com/bzimmer/[email protected]/album.go:25 +0x7b
github.com/bzimmer/smugmug.(*AlbumService).Album(0xc00000e160, {0x146df50, 0xc000024078}, {0x7ffeefbff564, 0x0}, {0x0, 0x0, 0x0})
        /Users/bzimmer/Development/pkg/mod/github.com/bzimmer/[email protected]/album.go:60 +0x116
github.com/bzimmer/ma.album(0xc00001ebc0)
        /Users/bzimmer/Development/src/github.com/bzimmer/ma/ls.go:41 +0x13e
github.com/urfave/cli/v2.(*Command).Run(0xc00010a900, 0xc00001e9c0)
        /Users/bzimmer/Development/pkg/mod/github.com/urfave/cli/[email protected]/command.go:163 +0x64a
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc00013e680, 0xc00001e880)
        /Users/bzimmer/Development/pkg/mod/github.com/urfave/cli/[email protected]/app.go:434 +0x9a6
github.com/urfave/cli/v2.(*Command).startApp(0xc00010a7e0, 0xc00001e880)
        /Users/bzimmer/Development/pkg/mod/github.com/urfave/cli/[email protected]/command.go:278 +0x713
github.com/urfave/cli/v2.(*Command).Run(0xc00001e880, 0x7ffeefbff55b)
        /Users/bzimmer/Development/pkg/mod/github.com/urfave/cli/[email protected]/command.go:94 +0x7bc
github.com/urfave/cli/v2.(*App).RunContext(0xc00013e340, {0x146df50, 0xc000024078}, {0xc00001e080, 0x4, 0x4})
        /Users/bzimmer/Development/pkg/mod/github.com/urfave/cli/[email protected]/app.go:313 +0x81e
main.main()
        /Users/bzimmer/Development/src/github.com/bzimmer/ma/cmd/ma/main.go:173 +0xef6

improve test case robustness

The majority of the test cases copy the local testdata file directly. It would be better / more idiomatic to use http.ServeFile.

Additionally, image_test/TestImagesIter should use the request parameters in the http handler rather than maintain state with a counter.

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.