Giter Club home page Giter Club logo

couchzilla.jl's People

Contributors

loredanacirstea avatar xpqz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

couchzilla.jl's Issues

Pkg.add("Couchzilla") is not working

Pkg.add("Couchzilla") is not working. However, Pkg.clone("https://github.com/xpqz/Couchzilla.jl") is working fine.

julia> Pkg.add("Couchzilla")
ERROR: unknown package Couchzilla
 in macro expansion at ./pkg/entry.jl:53 [inlined]
 in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at ./task.jl:360
 in sync_end() at ./task.jl:311
 in macro expansion at ./task.jl:327 [inlined]
 in add(::String, ::Base.Pkg.Types.VersionSet) at ./pkg/entry.jl:51
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at ./file.jl:59
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:31
 in add(::String) at ./pkg/pkg.jl:100

julia> Pkg.clone("https://github.com/xpqz/Couchzilla.jl")
INFO: Cloning Couchzilla from https://github.com/xpqz/Couchzilla.jl
INFO: Computing changes...
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of BufferedStreams from https://github.com/BioJulia/BufferedStreams.jl.git
INFO: Cloning cache of Codecs from https://github.com/dcjones/Codecs.jl.git
INFO: Cloning cache of Compat from https://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Homebrew from https://github.com/JuliaPackaging/Homebrew.jl.git
INFO: Cloning cache of HttpCommon from https://github.com/JuliaWeb/HttpCommon.jl.git
INFO: Cloning cache of HttpParser from https://github.com/JuliaWeb/HttpParser.jl.git
INFO: Cloning cache of JSON from https://github.com/JuliaIO/JSON.jl.git
INFO: Cloning cache of Libz from https://github.com/BioJulia/Libz.jl.git
INFO: Cloning cache of MbedTLS from https://github.com/JuliaWeb/MbedTLS.jl.git
INFO: Cloning cache of Requests from https://github.com/JuliaWeb/Requests.jl.git
INFO: Cloning cache of SHA from https://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from https://github.com/JuliaWeb/URIParser.jl.git
INFO: Installing BinDeps v0.4.5
INFO: Installing BufferedStreams v0.3.0
INFO: Installing Codecs v0.2.0
INFO: Installing Compat v0.16.0
INFO: Installing Homebrew v0.4.2
INFO: Installing HttpCommon v0.2.6
INFO: Installing HttpParser v0.2.0
INFO: Installing JSON v0.8.2
INFO: Installing Libz v0.2.3
INFO: Installing MbedTLS v0.4.3
INFO: Installing Requests v0.4.1
INFO: Installing SHA v0.3.1
INFO: Installing URIParser v0.1.8
INFO: Building Homebrew
INFO: Downloading brew...
######################################################################## 100.0%
Initialized empty Git repository in /Users/drlinux/.julia/v0.5/Homebrew/deps/usr/.git/
remote: Counting objects: 1045, done.
remote: Compressing objects: 100% (960/960), done.
remote: Total 1045 (delta 102), reused 341 (delta 47), pack-reused 0
Receiving objects: 100% (1045/1045), 1.01 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (102/102), done.
From https://github.com/Homebrew/brew
 * [new branch]      master     -> origin/master
HEAD is now at 9aa4888 README: note MacStadium, add more links.
Updating Homebrew...
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
  http://docs.brew.sh/Analytics.html

==> Tapping homebrew/core
Cloning into '/Users/drlinux/.julia/v0.5/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4111, done.
remote: Compressing objects: 100% (3986/3986), done.
remote: Total 4111 (delta 28), reused 467 (delta 10), pack-reused 0
Receiving objects: 100% (4111/4111), 3.28 MiB | 1.17 MiB/s, done.
Resolving deltas: 100% (28/28), done.
Tapped 3984 formulae (4,140 files, 10.2M)
==> Unshallowing homebrew/core
remote: Counting objects: 316857, done.
remote: Compressing objects: 100% (135951/135951), done.
remote: Total 316857 (delta 181624), reused 313329 (delta 178107), pack-reused 0
Receiving objects: 100% (316857/316857), 85.21 MiB | 2.53 MiB/s, done.
Resolving deltas: 100% (181624/181624), completed with 3464 local objects.
Updating Homebrew...
==> Tapping staticfloat/juliadeps
Cloning into '/Users/drlinux/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliadeps'...
remote: Counting objects: 1848, done.
remote: Total 1848 (delta 0), reused 0 (delta 0), pack-reused 1848
Receiving objects: 100% (1848/1848), 351.04 KiB | 587.00 KiB/s, done.
Resolving deltas: 100% (1106/1106), done.
Tapped 16 formulae (44 files, 454K)
==> Tapping staticfloat/juliatranslated
Cloning into '/Users/drlinux/.julia/v0.5/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliatranslated'...
remote: Counting objects: 5, done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 5
Unpacking objects: 100% (5/5), done.
Tapped 0 formulae (29 files, 22K)
Already up-to-date.
INFO: Building HttpParser
INFO: Attempting to Create directory /Users/drlinux/.julia/v0.5/HttpParser/deps/downloads
INFO: Attempting to Create directory /Users/drlinux/.julia/v0.5/HttpParser/deps/downloads
INFO: Directory /Users/drlinux/.julia/v0.5/HttpParser/deps/downloads already created
INFO: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   123    0   123    0     0    183      0 --:--:-- --:--:-- --:--:--   183
100 55365  100 55365    0     0  31990      0  0:00:01  0:00:01 --:--:--  173k
INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Attempting to Create directory /Users/drlinux/.julia/v0.5/HttpParser/deps
INFO: Directory /Users/drlinux/.julia/v0.5/HttpParser/deps already created
Archive:  /Users/drlinux/.julia/v0.5/HttpParser/deps/downloads/v2.7.1.zip
feae95a3a69f111bc1897b9048d9acbc290992f9
   creating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/.gitignore
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/.mailmap
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/.travis.yml
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/AUTHORS
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/LICENSE-MIT
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/Makefile
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/README.md
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/bench.c
   creating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/contrib/
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/contrib/parsertrace.c
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/contrib/url_parser.c
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/http_parser.c
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/http_parser.gyp
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/http_parser.h
  inflating: /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1/test.c
INFO: Attempting to Create directory /Users/drlinux/.julia/v0.5/HttpParser/deps/usr/lib
INFO: Changing Directory to /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /Users/drlinux/.julia/v0.5/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /Users/drlinux/.julia/v0.5/HttpParser/deps/src
INFO: Attempting to Create directory /Users/drlinux/.julia/v0.5/HttpParser/deps/usr/lib
INFO: Directory /Users/drlinux/.julia/v0.5/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /Users/drlinux/.julia/v0.5/HttpParser/deps/src
cc  -I. -DHTTP_PARSER_STRICT=0  -Wall -Wextra -Werror -O3  -fPIC -c http_parser.c -o libhttp_parser.o
cc  -shared -o libhttp_parser.dylib libhttp_parser.o
INFO: Changing Directory to /Users/drlinux/.julia/v0.5/HttpParser/deps/src
INFO: Building MbedTLS
Using system libraries...

julia> Pkg.add("Couchzilla")
INFO: Nothing to be done
INFO: METADATA is out-of-date โ€” you may not have the latest version of Couchzilla
INFO: Use `Pkg.update()` to get the latest versions of your packages

Can not auth via http basic auth method

Hi,
When I try to connect to my couchdb (1.6.x) server via http basic auth, the library can not auth :

julia> import Couchzilla

julia> username = "username"
"admin"

julia> password = "password"
"password"

julia> host = "http://"*username*":"*password*"@127.0.0.1:5984"
"http://username:[email protected]:5984"

julia> client = Couchzilla.Client("","",host)
Couchzilla.Client(URI(http://username:[email protected]:5984/),Dict{String,HttpCommon.Cookie}())

julia> db, created = Couchzilla.createdb(client, "juliadb")
ERROR: HTTPException - status: 401 request: Request(http:/127.0.0.1:5984/juliadb, 6 headers, 2 bytes in body) response: Dict{String,Any}(Pair{String,Any}("error","unauthorized"),Pair{String,Any}("reason","Authentication required.")) message:
 in #relax#2(::Dict{String,HttpCommon.Cookie}, ::Dict{Any,Any}, ::Dict{Any,Any}, ::Dict{Any,Any}, ::Function, ::Function, ::String) at /Users/drlinux/.julia/v0.5/Couchzilla/src/utils.jl:92
 in (::Couchzilla.#kw##relax)(::Array{Any,1}, ::Couchzilla.#relax, ::Function, ::String) at ./<missing>:0
 in createdb(::Couchzilla.Client, ::String) at /Users/drlinux/.julia/v0.5/Couchzilla/src/client.jl:69

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.