Coder Social home page Coder Social logo

Comments (14)

kspearrin avatar kspearrin commented on May 17, 2024 2

I'll release 1.6.1 soon. Thanks.

from cli.

kspearrin avatar kspearrin commented on May 17, 2024 1

Hmm, I see that now.

Let me look into this more.

from cli.

kspearrin avatar kspearrin commented on May 17, 2024

Is your CLI up to date? Attachments now use a new type of key.

from cli.

vwxyzjn avatar vwxyzjn commented on May 17, 2024

@kspearrin Hi Kyle Thank for the prompt reply. I have just tried the newest version and it still didn't work.

PS E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden> bw update
No update available.
PS E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden> bw login
? Email address: [email protected]
? Master password: [hidden]
? Two-step login method: Authenticator App
? Two-step login code: 870597
You are logged in!

To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:
$ export BW_SESSION="Plhf8ZsJkUHz+GFAP/gTjon7AFJuZionmf4AVhVs1QZ7juKAmPpaRiZdMpyNNUAZ3AvpBawZLtIDxRnXhT9fZw=="
> $env:BW_SESSION="Plhf8ZsJkUHz+GFAP/gTjon7AFJuZionmf4AVhVs1QZ7juKAmPpaRiZdMpyNNUAZ3AvpBawZLtIDxRnXhT9fZw=="

You can also pass the session key to any command with the `--session` option. ex:
$ bw list items --session Plhf8ZsJkUHz+GFAP/gTjon7AFJuZionmf4AVhVs1QZ7juKAmPpaRiZdMpyNNUAZ3AvpBawZLtIDxRnXhT9fZw==
PS E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden> bw get attachment au1rlkl8o1uq26522w6f1bvemt7uhx5k --itemid a1de07cd-121d-4eb8-a46a-a9af01149a3b --session Plhf8ZsJkUHz+GFAP/gTjon7AFJuZionmf4AVhVs1QZ7juKAmPpaRiZdMpyNNUAZ3AvpBawZLtIDxRnXhT9fZw== --output ./
mac failed.
An error occurred while saving the attachment.
PS E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden> bw -v
1.6.0
PS E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden> bw get attachment hdj7uipykiga1hyj55z0m9iyabp8e49j --itemid 51645f39-16e6-4f3d-bfb8-a8ef0145f25f --session Plhf8ZsJkUHz+GFAP/gTjon7AFJuZionmf4AVhVs1QZ7juKAmPpaRiZdMpyNNUAZ3AvpBawZLtIDxRnXhT9fZw== --output ./
Saved E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden\2015-2017 South Carolina Document of Registration.pdf
PS E:\Go\src\github.com\vwxyzjn\portwarden\cmd\portwarden>

from cli.

kspearrin avatar kspearrin commented on May 17, 2024

When did you create this attachment? What app was it created from? Is your sever up to date?

from cli.

vwxyzjn avatar vwxyzjn commented on May 17, 2024
  1. I just uploaded this attachment today.
  2. I was using the browser extension for chrome or firefox
  3. I am using the official Bitwarden server. Did not self-host.

from cli.

kspearrin avatar kspearrin commented on May 17, 2024

I am not sure then. Can you try uploading it or another file again in the same way? Does it break? Can you download the file using another app without issue?

from cli.

vwxyzjn avatar vwxyzjn commented on May 17, 2024

Just tried again. Uploaded a new attachment and used the CLI to download. It failed with the same error.

This is the way I have uploaded them
https://imgur.com/a/oUZVogp

This is the way I have tried to retrieve them.
https://imgur.com/a/qX8PK6w

from cli.

kspearrin avatar kspearrin commented on May 17, 2024

Can you download it from the browser extension again without issue?

from cli.

vwxyzjn avatar vwxyzjn commented on May 17, 2024

I could. As shown here:

https://imgur.com/a/OyDaz0c

from cli.

kspearrin avatar kspearrin commented on May 17, 2024

You are using CLI v1.6.0?

from cli.

vwxyzjn avatar vwxyzjn commented on May 17, 2024

Thank you.

from cli.

kspearrin avatar kspearrin commented on May 17, 2024

@vwxyzjn I found the problem. Should be fixed with latest dev build from here: https://ci.appveyor.com/project/bitwarden/cli/build/artifacts

Can you give it a try?

from cli.

vwxyzjn avatar vwxyzjn commented on May 17, 2024

@kspearrin Yes that did the trick. The attachment was successfully downloaded. Thank you for the quick fix!

from cli.

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.