Git Product home page Git Product logo

Comments (3)

kyocum avatar kyocum commented on July 29, 2024

Looking into this issue, we wanted to only attach to remotes on existing "paths" in S3.

The current code allows attaching to just buckets, which is fine.

But for / paths we required the last key to refer to an existing object, where the object is a "folder" in s3, i.e., it ends with '/'. However the current code also allows one to attach to a remote without that requirement.

from disdat.

post2web avatar post2web commented on July 29, 2024

It throws the same error even if the path ends with '/'.

$ dsdt remote new s3://my-bucket/non-existing-key/
Error code 404
Unable to bind context new because URL s3://my-bucket/non-existing-key/ does not exist.
Traceback (most recent call last):
  File "/mnt/data/.virtualenvs/F7DBigBang/bin/dsdt", line 11, in <module>
    load_entry_point('disdat==0.9.13', 'console_scripts', 'dsdt')()
  File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/dsdt.py", line 91, in main
    args.func(args)
  File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/fs.py", line 1579, in <lambda>
    remote_p.set_defaults(func=lambda args: _remote(fs, args))
  File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/fs.py", line 1363, in _remote
    fs.remote_add(args.context, args.s3_url)
  File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/fs.py", line 1348, in remote_add
    ctxt_obj.bind_remote_ctxt(remote_context, s3_url)
  File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/data_context.py", line 151, in bind_remote_ctxt
    raise RuntimeError
RuntimeError

The only way dsdt remote works for me if I point it to a file on S3.

from disdat.

kyocum avatar kyocum commented on July 29, 2024

Current behavior
There is only one "folder" at s3://disdat-prod, which is testbind
Both dsdt remote somecontext s3://disdat-prod/something
and
dsdt remote somecontext s3://disdat-prod/something/
succeed, and following bundles pushes also succeed.
And dsdt remote somecontext s3://disdat-prod/testbind also works.
Closing issue.

from disdat.

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.