Giter VIP home page Giter VIP logo

Comments (7)

twpayne avatar twpayne commented on July 26, 2024 1

When I run charm I get the following output:

root@1a1cfd650090:/# charm

   Charm

  │ Username: (none set)
  │ Joined: 17 Mar 2022

  > Link a machine
    Manage linked keys
    Set Username
    Backup
    Exit

  j/k, ↑/↓: choose • enter: select

Exploring this TUI seems to indicate that things are working well, for example choosing Managed linked keys prints a key with the very recent timestamp (likely the key that I created in this temporary docker container). This would seem to narrow down the problem to be "charm is working correctly, but charm id isn't printing the output expected by the user".

from charm.

stephaneeybert avatar stephaneeybert commented on July 26, 2024 1

@bashbunni What !? The one bashbunny I watched last week with TJ showing how to turn nvim into an IDE ? What a surprise !! Thank you for your kind and quick come back !
Stephane Eybert

from charm.

bashbunni avatar bashbunni commented on July 26, 2024

Just to confirm, the charm serve process isn't being suspended in the background right? Are you able to see anything when you have the server running, then run charm? There should be output after charm serve giving you updates on any activity on the server.

Let me know and I'll be happy to dig in to this further!

from charm.

twpayne avatar twpayne commented on July 26, 2024

Thank you for the reply! I think the charm serve process is running. I tested this using the docker commands above (up to and including charm serve &) and I got the following output from using wget to connect to it:

# wget -O - http://localhost:35354
--2022-03-17 00:41:55--  http://localhost:35354/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:35354... connected.
HTTP request sent, awaiting response... 2022/03/17 00:41:55 <- GET / 127.0.0.1
2022/03/17 00:41:55 -> 400 Bad Request 29B 14.413µs
400 Bad Request
2022-03-17 00:41:55 ERROR 400: Bad Request.

The 400 Bad Request response indicates that the charm server (or something else speaking HTTP on port 35354) is running, and I would expect such a 4xx response from the server given that the request body is empty.

edit: grammar

from charm.

bashbunni avatar bashbunni commented on July 26, 2024

Hmm, this is interesting... I was able to reproduce the "Bad Request" response from the server with the wget command in my docker container (followed the steps you outlined above) despite having no issue with charm id. I've also reached out to some of my teammates for ideas. Will keep you updated!

from charm.

stephaneeybert avatar stephaneeybert commented on July 26, 2024

Sorry to be off topic here, but I was enticed to come on this thread from its title, as I'm too, unsure how to get started with charm.

In fact, it's a bit worse, I wonder what I could use charm for. I tried to understand the possible usages from its website but was left wondering.

Maybe there is some documentation or a simple wiki page ? Or better, a video showing us what good things we can do with it ?

from charm.

bashbunni avatar bashbunni commented on July 26, 2024

Hey @stephaneeybert thank you so much for reaching out! We're working on building out the documentation and providing more context around our projects both in written and video formats. It's really helpful to hear your pain points, so thank you for sharing. I'll update you on this thread when we have added some documentation that makes it a bit more clear on what you can do with Charm and how you can get started with using it

from charm.

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.