Julien-cpsn / ATAC

A simple API client (postman like) in your terminal
https://atac.julien-cpsn.com/
MIT License
2.02k stars 86 forks source link

Application crashes when trying to send requests #107

Closed buddhadonthavemoney closed 2 months ago

buddhadonthavemoney commented 2 months ago

I'm trying to use atac for the first time. I created a request and when pressing space to send it. The whole application crashes.

Traceback->

thread 'main' panicked at /home/buddha/.cargo/registry/src/index.crates.io-6f17d22bba15001f/atac-0.17.0/src/app/business_logic/request/send.rs:144:54:
Could not build HTTP client: reqwest::Error { kind: Builder, source: Custom { kind: PermissionDenied, error: "could not load certs from dir /usr/lib/ssl/certs: Permission denied (os error 13)" } }
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: atac::app::business_logic::request::send::<impl atac::app::app::App>::prepare_request::{{closure}}
   4: atac::tui::events::<impl atac::app::app::App>::handle_key::{{closure}}
   5: tokio::runtime::park::CachedParkThread::block_on
   6: tokio::runtime::context::runtime::enter_runtime
   7: atac::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

this is my request which is unauthenticated basic get request.

────────────────────────────────────────────────────────────────────────────────────────────* ATAC *────────────────────────────────────────────────────────────────────────────────────────────
┌Collections─────────────────────────┐                                                                           feeds
│ ▼ go (1)                           │┌───Method────┐┌URL──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│>  GET feeds                        ││     GET     ││ http://localhost:8002/v1/feeds                                                                                                          │
│                                    │└─────────────┘└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
│                                    │ Params │ Auth (Bearer) │ Headers (5) │ Body │ Scripts                      │ Result body │ Cookies │ Headers
│                                    │────────────────────────────────────────────────────────────────────────────│─────────────────────────────────────────────────────────────────────────────
│                                    │                                                                            │                                                                             
│                                    │                                  No params                                 │
│                                    │                       (Add one with n or via the URL)                      │ 
Julien-cpsn commented 2 months ago

Hello,

Seems like you have permission issues regarding your SSL folder. Also, it may be linked to https://github.com/rustls/rustls-native-certs/issues/124

Have a great day!

buddhadonthavemoney commented 2 months ago

Thank you Julien. Updating the permission of the SSL folder worked.